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

CreateFineTuningJob results in the error: `json: cannot unmarshal string into Go struct field Hyperparameters.hyperparameters.n_epochs of type int` It looks like OpenAI is returning the following default for Hyperparameters now: ```json...

bug

I need to know the ratelimit information in the stream response, including the remaining tokens and requests, as well as when they will be reset.

enhancement

possible to make it work with https://github.com/keldenl/gpt-llama.cpp?

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** A clear and concise description of what the bug is. If it's...

enhancement

There's are a bunch of new Moderation models available now, let's add them to our [constants](https://github.com/sashabaranov/go-openai/blob/a14bc103f4bc2b3ac40c844079fdf59dfdf62b0b/completion.go#L20) https://platform.openai.com/docs/models/overview

enhancement
good first issue

The new fine-tuning API has a new jobs listing endpoint: **GET https://api.openai.com/v1/fine_tuning/jobs** Docs: https://platform.openai.com/docs/api-reference/fine-tuning/

enhancement

Currently, in many [test cases](https://github.com/search?q=repo%3Asashabaranov%2Fgo-openai+resBytes&type=code), we return empty structs from the test server. For example: ```go server.RegisterHandler("/v1/engines/text-davinci-003", func(w http.ResponseWriter, r *http.Request) { resBytes, _ := json.Marshal(Engine{}) //

enhancement
good first issue

**Describe the change** Some organisations may have their own GPT proxy, so when using this library, they would need to specify their proxy url. In this case, seems `NewClientWithConfig` is...

Hi! The response contains information about the limits, which can help avoid the 429 error. May be return 2 variables: response body and response headers?

enhancement

**Is your feature request related to a problem? Please describe.** Some organisations may have their own GPT proxy, so when using this library, they would need to specify their proxy...

enhancement