sashabaranov / go-openai

OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Apache License 2.0
9.03k stars 1.39k forks source link

Update RunRequest to match OpenAI parameters #753

Open TheAdamSmith opened 4 months ago

TheAdamSmith commented 4 months ago

Your issue may already be reported! Please search on the issue tracker before creating one.

Is your feature request related to a problem? Please describe. I would like to be able to add values to the top_p, tool_choice, and response_format parameters of a run request https://platform.openai.com/docs/api-reference/runs/createRun

Describe the solution you'd like Add these fields to the RunRequest struct. Ignore the stream param for now since that requires an assistant streaming implementation. The others should be safe to add.

Describe alternatives you've considered n/a

Additional context n/a