go-openai
go-openai copied to clipboard
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Current embeddings API might use an improvement: - Use `float32` instead of `float64` (I highly doubt that OpenAI uses 64-bit floats in their LLM) - Add some basic operations between...
I found an undocumented possibility - for messages of the gpt-3.5 model, you can additionally specify the "name" property. This additional feature is useful for chats with multiple participants. Found...
authToken cannot be passed in when setting http proxy. When setting custom config using NewClientWithConfig(), authToken cannot be set externally because authToken is in lower case. You want to provide...
Hello, Do you have any plans to include support for other OpenAI APIs in this package, such as the ones for images? You can refer to the documentation at https://platform.openai.com/docs/guides/images.
Hi, So there appears to be an issue when making a request using logitBias. The below error keeps on popping up when the field is populated with any int value....
My apikey request openai returns an error message, but ```stream.Recv()``` err is nil ```json { "error": { "message": "Your access was terminated due to violation of our policies, please check...
``` func main() { config := openai.DefaultConfig("sk-XXXXXXXXXXXXXXXXX") proxyUrl, err := url.Parse("http://127.0.0.1:7890") if err != nil { panic(err) } transport := &http.Transport{ Proxy: http.ProxyURL(proxyUrl), } config.HTTPClient = &http.Client{ Transport: transport, }...
Post "https://api.openai.com/v1/chat/completions": x509: certificate has expired or is not yet valid
 ``` config := openai.DefaultConfig(utils.OpenAIAuthToken) proxyUrl, err := url.Parse(utils.OpenAIUrl) if err != nil { panic(err) } transport := &http.Transport{ Proxy: http.ProxyURL(proxyUrl), } config.HTTPClient = &http.Client{ Transport: transport, } c :=...