6 views
-/https://github.com/berriai/litellm/issues/23156
GitHub · issue

#23156 [Bug]: OpenAI GPT-5.4 tool calls with reasoning_effort fail through openai-agents sdk

  • State: open
  • Author: @taivokasper
  • Labels: bug, llm translation, SDK

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

Using LiteLLM with the [openai-agents SDK](https://github.com/openai/openai-agents-python) with an OpenAI GPT-5.4 model and function tool calls fails if `reasoning_effort` is set.

Observed behavior: - model: `openai/gpt-5.4` - tools: function tools enabled - reasoning: `reasoning_effort="low"` - request fails with:

`OpenAIException - Function tools with reasoning_effort are not supported for gpt-5.4 in /v1/chat/completions. Please use /v1/responses instead.`

Expected behavior: - Either LiteLLM should automatically route this OpenAI GPT-5.4 + tools + reasoning request to `/v1/responses` - LiteLLM should reject this combination

### Steps to Reproduce

You can run the following script to repro: ``` OPENAI_API_KEY=your_token_here \ uv run \ --with "litellm==1.82.0" \ --with "openai-agents[litellm]==0.11.1" \ python - <<'PY' import asyncio import os

from agents import Agent, ModelSettings, Runner, function_tool from agents.extensions.models.litellm_model import LitellmModel from openai.types.shared import Reasoning

@function_tool async …

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h47m54s ago — entered · #import:https:::github.com:berriai:litellm post #3071
FIPS compliance spans cryptographic dependency replacement, platform-specific validation, backward compatibility, and security audit requirements, making it substantially broader and riskier than a targeted provider request-routing fix.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search