go-openai
go-openai copied to clipboard
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
i got an error: `Post "https://api.openai.com/v1/files": dial tcp 104.244.46.21:443: i/o timeout ` because of the Network access restrictions from my country. how can I set http proxy globally in my...
**Is your feature request related to a problem? Please describe.** The run object tool type is missing the complete list you can find in official documentation: https://platform.openai.com/docs/api-reference/runs/object#runs/object-tools **Describe the solution...
Fixes issue when using non audio formats: Transcription error: json: cannot unmarshal number into Go value of type openai.audioTextResponse Fixes: 8e165dc9aadc ("Feat Add headers to openai responses (#506)")
By default, the Whisper API only supports files that are less than 25 MB. If you have an audio file that is longer than that, you will need to break...
**Describe the bug** My lib version is 1.17.4 , When I use chat model,And take a request ,it shows **`status code: 400, message: [] is too short - 'messages'`** Irregular...
I am using the latest version, but I encountered an error when using the GPT432K0613 version: CreateChatCompletion Failed err=error, status code: 404, message: The model gpt-4-32k does not exist or...
**Describe the change** Add example of Test-To-Speech API **Provide OpenAI documentation link** N/A **Describe your solution** N/A **Tests** N/A **Additional context** N/A
**Is your feature request related to a problem? Please describe.** Yes, the current implementation of the go-openai project does not support the latest GPT-4 Turbo model introduced by OpenAI. As...
config := openai.DefaultAzureConfig(appKey, baseUrl) config.APIVersion = "2023-07-01-preview" config.AzureModelMapperFunc = func(model string) string { azureModelMapping := map[string]string{ "gpt-3.5-turbo": "gpt-35-turbo", "text-embedding-ada-002": "text-embedding-ada-002", "gpt-4": "*", openai.GPT4TurboPreview: "**", } return azureModelMapping[model] } client :=...
Currently the package does not support adding either base64 encoded images to the chat completions or an image link. This allows GPT to analyse images. [This is a new feature...