go-openai icon indicating copy to clipboard operation
go-openai copied to clipboard

OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go

Results 277 go-openai issues
Sort by recently updated
recently updated
newest added

When using CreateEmbeddings, I encountered some problems. Whenever I needed the base64 format, it always returned float. And because EmbeddingResponseBase64. Data [0]. The use of Embedding is base64String let I...

enhancement

Your issue may already be reported! Please search on the [issue tracker](https://github.com/sashabaranov/go-openai/issues) before creating one. **Is your feature request related to a problem? Please describe.** For billing the open ai...

enhancement

**Describe the change** PR to fix #967 and #601 The OpenAI Edit Image endpoint `/v1/images/edits` only accepts specific image formats as seen in error responses like so: `status: 400 Bad...

This PR adds a `TemperatureOpt *float32` field to `ChatCompletionRequest`, that allows distinguishing between an unset (default) temperature and explicit zero. This has been reported in several issues (e.g., https://github.com/sashabaranov/go-openai/issues/9), but...

Underlying model is correct, constant name was completely wrong in #968. I fixed it here: https://github.com/sashabaranov/go-openai/pull/981 I will close this issue when the PR is merged and released. Thanks.

bug

**Describe the change** This change adds support for an ExtraBody parameter in the EmbeddingRequest struct, allowing developers to include additional, arbitrary key-value pairs in the API request payload. This ensures...

**Describe the bug** Azure models provided with a "dot" inside of the deployment names are not found. This is because of this logic: https://github.com/sashabaranov/go-openai/blob/658beda2ba8be4d155bc62208224a5766e0640c0/config.go#L73 Is there any reason, "." and...

bug

Your issue may already be reported! Please search on the [issue tracker](https://github.com/sashabaranov/go-openai/issues) before creating one. **Is your feature request related to a problem? Please describe.** A clear and concise description...

enhancement

I'm working with Assistant API , and I want to implement streaming for the response content. Here's my current code: `package main import ( "context" "fmt" "log" "time" openai "github.com/sashabaranov/go-openai"...

enhancement

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** CreateEditImage method upload file report Supported file formats are 'image/png' **To Reproduce**...

bug