go-openai
go-openai copied to clipboard
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Your issue may already be reported! Please search on the [issue tracker](https://github.com/sashabaranov/go-openai/issues) before creating one. **Describe the bug** A clear and concise description of what the bug is. If it's...
Does it support a summary parameter? From the code, it appears that this parameter is not supported.  
**Describe the change** This adds support for specifying the Service Tier in a chat completion request. **Provide OpenAI documentation link** https://platform.openai.com/docs/api-reference/chat/create#chat-create-service_tier **Describe your solution** - Added `service_tier` to the chat...
model like doubao has a new model seed-1.6. it has a paramemter named "extra_body" https://www.volcengine.com/docs/82379/1449737 
# Overview In the anthropic sonnet and opus models, the think mode is not returned correctly https://docs.anthropic.com/en/api/messages#body-thinking-budget-tokens # Problem phenomenon ## Curl Request ```bash $ llminvoker_test git:(master) ✗ curl https://api.anthropic.com/v1/messages...
**Describe the change** TopK is well-used paramater for provider which uses OpenAI-compatible API format. This commit add the `top_k` parameter. **Provide OpenAI documentation link** Provide a relevant API doc from...
A similar PR may already be submitted! Please search among the [Pull request](https://github.com/sashabaranov/go-openai/pulls) before creating one. If your changes introduce breaking changes, please prefix the title of your pull request...
**Describe the change** This PR refactors the `ChatCompletionStream` to use dependency injection by introducing a `ChatStreamReader` interface. This allows for injecting custom stream readers, primarily for testing purposes, making the...
We had codecov broken for some time, and now it seems that we're missing test coverage in a couple of places https://app.codecov.io/gh/sashabaranov/go-openai
Hi! I'm Sergey from the Integrations team over at [AI/ML API](https://aimlapi.com/), a startup with 150K+ users, providing over 300 AI models in one place Your project looks dope, so we'd...