go-openai
go-openai copied to clipboard
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
**Describe the bug** 1. below is the post data to OPENAI API. ```json { "model": "gpt-3.5-turbo-1106", "messages": [ { "role": "system", "content": "You are an helpful and kind assistant to...
Hi, there i already support to gpt function calling? It would be cool having it
**Describe the bug** While integrating with the latest Edit Image API `(POST https://api.openai.com/v1/images/edits)` by using the following code : ```golang req := openai.ImageEditRequest{Image: file, Mask: maskFile, Prompt: prompt, N: count,...
A few days ago I started view some errors in logs: ``error, status code: 403, message: invalid character '
This PR supersedes #577 coincidentally. **Describe the change** I have re-implemented `FileRequest` and `CreateFile` so as to support arbitrary `io.Reader` inputs which must have priority over `FilePath` and also fixed...
"model": "text-embedding-ada-002-v2" is not mapped in embeddings.go file which leads to model:"" response from embeddings client file. **To Reproduce** https://api.openai.com/v1/embeddings request - { "input": "The food was delicious and the...
I want know. Can I know which threads I have created? What are the implications if I do not delete threads?
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.** I am using the `CreateImage`...
**Describe the change** Add missing implementation for GET /fine_tuning/jobs **Describe your solution** Implemented the method as described in the API specification (consistent with other APIs) **Tests** Added UTs and verified...