-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Description
Confirm this is an issue with the Python library and not an underlying OpenAI API
- This is an issue with the Python library
Describe the bug
OpenAI allows us to use verbosity
param with both Responses and Completions endpoints.
curl --request POST \
--url https://api.openai.com/v1/chat/completions \
--header "Authorization: Bearer $OPENAI_API_KEY" \
--header 'Content-type: application/json' \
--data '{
"model": "gpt-5",
"messages": [
{ "role": "user", "content": "What is the answer to the ultimate question of life, the universe, and everything?" }
],
"verbosity": "low"
}'
This works fine as a standalone request, but library does not accept verbosity
as a valid parameter in chat.completions.create()
To Reproduce
chat_completion = client.chat.completions.create(
messages=[
{"role": "user", "content": "What is the answer to the ultimate question of life, the universe, and everything?"}
],
model="gpt-5",
verbosity="low"
)
this should work, not throw
create() got an unexpected keyword argument 'verbosity'
OS
linux
Python version
Python v3.9
Library version
openai v1.106.0