mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
docs(openai): document gpt-5.4 reasoning_effort + tools limitation
Add tip boxes explaining that gpt-5.4 does not support reasoning_effort with function tools in /v1/chat/completions, and that the responses bridge (openai/responses/gpt-5.4) should be used instead.
This commit is contained in:
parent
bca8730041
commit
d232d0de6c
2 changed files with 22 additions and 1 deletions
|
|
@ -628,7 +628,22 @@ curl -X POST 'http://0.0.0.0:4000/chat/completions' \
|
|||
|
||||
## OpenAI Chat Completion to Responses API Bridge
|
||||
|
||||
Call any Responses API model from OpenAI's `/chat/completions` endpoint.
|
||||
Call any Responses API model from OpenAI's `/chat/completions` endpoint.
|
||||
|
||||
:::tip gpt-5.4 + reasoning_effort + function tools
|
||||
|
||||
OpenAI does not support `reasoning_effort` with function tools for `gpt-5.4` in `/v1/chat/completions`. Use the responses bridge instead:
|
||||
|
||||
```python
|
||||
response = litellm.completion(
|
||||
model="openai/responses/gpt-5.4", # routes to /v1/responses
|
||||
messages=[{"role": "user", "content": "What's the weather?"}],
|
||||
tools=[...],
|
||||
reasoning_effort="low",
|
||||
)
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="sdk" label="SDK">
|
||||
|
|
|
|||
|
|
@ -592,6 +592,12 @@ Expected Response
|
|||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
:::tip gpt-5.4: reasoning_effort + function tools
|
||||
|
||||
OpenAI does not support `reasoning_effort` with function tools for `gpt-5.4` in `/v1/chat/completions`. Use `openai/responses/gpt-5.4` to route through the Responses API instead. See [Responses API Bridge](/docs/providers/openai#openai-chat-completion-to-responses-api-bridge) for details.
|
||||
|
||||
:::
|
||||
|
||||
## OpenAI Responses API - Auto-Summary Control
|
||||
|
||||
When using OpenAI Responses API models (like `gpt-5`) via `/chat/completions` with `reasoning_effort`, you can control whether `summary="detailed"` is automatically added to the reasoning parameter.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue