-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add Verbosity parameter to Chat Completion Request #1064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1064 +/- ##
=======================================
Coverage 99.59% 99.59%
=======================================
Files 34 34
Lines 2206 2206
=======================================
Hits 2197 2197
Misses 6 6
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hey @azdaev, thank you for the PR! I don't see the This page says that it's supported in the Please lmk if this parameter is supported in the chat completions API and is not documented. Also, is this option only available for GPT-5? |
@sashabaranov This is weird, but the verbosity parameter is now gone from the API Reference of Chat Completion. I've attached the link in my first message but now verbosity just isn't there. However, it still is working. Verbosity definitely works with "gpt-5-mini", "gpt-5", "gpt-5-nano" as I have tested. It definitely isn't supported by "gpt-4.1-mini". Docs are too vague about Verbosity, so I had to check for myself. |
@azdaev got it, thanks! Could we please add a note about that in the comment for this field? |
@sashabaranov no problem! done! feel free to edit the noe if it doesn't satisfy you |
It's not being displayed in that page, but if you install the official openai go sdk (v2), it's available as part of the completions API:
|
Add Verbosity parameter to Chat Completion Request
Verbosity - Constrains the verbosity of the model's response. Lower values will result in more concise responses, while higher values will result in more verbose responses. Currently supported values are low, medium, and high.
OpenAI Docs - https://platform.openai.com/docs/api-reference/chat/create#chat_create-verbosity
Testing
✅ All existing tests pass