Skip to content

chat.completions does not work with verbosity param #2610

@YorkDW

Description

@YorkDW

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions