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

**Is your feature request related to a problem? Please describe.** As of now, the openai chatGPT API in the sashabaranov/go-openai project only supports a hardcoded end-point. This limitation restricts the...

enhancement

**Describe the bug** Missing pagination parameters for list assistants beta API: ``` first_id last_id has_more ``` **To Reproduce** ``` curl "https://api.openai.com/v1/assistants?order=desc&limit=20" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY"...

bug

Most of the current file-related interfaces directly read local files, such as `CreateFile`, `CreateAssistantFile`, etc. It is better to pass `io.Reader` directly. Otherwise, if I want to upload JSON data...

enhancement

withBetaAssistantV1() needs to be added to requests in messages.go

bug

**Describe the bug** Implementation is missing for ``` https://api.openai.com/v1/fine_tuning/jobs ```

bug

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** - Add randomized fields to Engine structs in tests **Describe your solution** - Implement cryptographically secure random utility functions **Tests** - Make these structs non-empty, by randomizing...

``` func main() { ctx := context.Background() authToken := "sk-1111111" clt := openai.NewClient(authToken) // thread AssisTantId := "asst_KVRxb298rDFIbAJS8PvpRZ97" thread, err := clt.CreateThread(ctx, openai.ThreadRequest{ //Metadata: map[string]any{"a": AssisTantId}, Messages: []openai.ThreadMessage{ { Role:...

bug

**Can I use session access openai?** I want use session access openai,And we will do this job?

enhancement

**Is your feature request related to a problem? Please describe.** Today, OpenAI announced their assistants API. I would like support for this API in golang. https://platform.openai.com/docs/api-reference/assistants **Describe the solution you'd...

enhancement