{"repo":"JuliaML/OpenAI.jl","free":true,"listed":false,"github":"https://github.com/JuliaML/OpenAI.jl","clone":"git clone https://github.com/JuliaML/OpenAI.jl.git","description":"OpenAI API wrapper for Julia","language":"Julia","stars":118,"topics":["api-wrapper","julia","openai-api","wrapper"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"OpenAI API wrapper for Julia (Unofficial) Overview Provides a community maintained Julia wrapper to the OpenAI API. For API functionality see reference documentation. Autogenerated documentation can be found here: https://juliaml.github.io/OpenAI.jl/dev/ Usage Quick Start 1. Create an OpenAI account, if you don't already have one 2. Create a secret API key 3. Choose a model to interact with ⚠️ We strongly suggest setting up your API key as an ENV variable . returns Overriding default parameters If you have a non-standard setup, such as a local LLM or third-party service that conforms to the OpenAI interface, you can override parameters using the OpenAIProvider struct in your application like this: For more use cases see tests. Streaming with StreamCallbacks OpenAI.jl integrates StreamCallbacks.jl for streaming responses. 1. Stream to any IO 2. Capture stream chunks 3. Customize printing To fully customize processing, you can overload StreamCallbacks.callback : See examples/streamcallbacks.jl for a full walkthrough. Generated OpenAPI Client The package also ships a generated client in OpenAI.OpenAIClient , built from the upstream OpenAI OpenAPI specification with JuliaComputing's OpenAPI.jl runtime. The generated module contains typed request/response models and API groups for the full spec, while the existing convenience wrapper functions remain available at the top level. To regenerate after updating openapi/openapi.yaml , run: Feature requests Feel free to open a PR, or fil","default_branch":null,"files":null,"tree":[],"storefront":"/r/JuliaML","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JuliaML/OpenAI.jl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}