Skip to content

Function tools with reasoning_effort are not supported for gpt-5.4 in /v1/chat/completions #4043

@SwAt1563

Description

@SwAt1563

pipecat version

0.0.105

Service Name

OpenAI

Service or model version

gpt-5.4

Issue Description

https://developers.openai.com/api/docs/guides/reasoning

Image

Reproduction Steps

llm = OpenAILLMService(
        api_key=settings.llm.openai.OPENAI_API_KEY,
        settings=OpenAILLMSettings(
            model="gpt-5.4",
            extra={"reasoning_effort": "low"},
        ),
    )

Expected Behavior


Actual Behavior


Error Logs

2026-03-16 21:13:14.946 | ERROR    | pipecat.processors.frame_processor:push_error_frame:744 - OpenAILLMService#0 exception (/usr/local/lib/python3.13/site-packages/openai/_base_client.py:1669): Error during completion: Error code: 400 - {'error': {'message': 'Function tools with reasoning_effort are not supported for gpt-5.4 in /v1/chat/completions. Please use /v1/responses instead.', 'type': 'invalid_request_error', 'param': 'reasoning_effort', 'code': None}}

2026-03-16 21:13:14.946 | WARNING  | pipecat.pipeline.service_switcher:handle_error:196 - Service OpenAILLMService#0 reported an error: Error during completion: Error code: 400 - {'error': {'message': 'Function tools with reasoning_effort are not supported for gpt-5.4 in /v1/chat/completions. Please use /v1/responses instead.', 'type': 'invalid_request_error', 'param': 'reasoning_effort', 'code': None}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions