feat(session,llm): restore session runtime on resume; align Responses API details
This commit is contained in:
@@ -74,9 +74,10 @@ responses OpenAI Responses API /v1/responses
|
||||
```
|
||||
|
||||
The Responses API client converts the conversation history to Responses input
|
||||
items (`user`/`assistant`/`system` messages, `function_call`, and
|
||||
`function_call_output`), streams `response.output_text.delta` events, and
|
||||
supports function calling through `response.output_item.added`,
|
||||
items (`user`/`assistant` messages, `function_call`, and
|
||||
`function_call_output`), sends the system prompt as the top-level
|
||||
`instructions` field, streams `response.output_text.delta` events, and supports
|
||||
function calling through `response.output_item.added`,
|
||||
`response.function_call_arguments.delta`, and `response.output_item.done`.
|
||||
|
||||
`models` is required. `/model model <name>` is restricted to that list. Each
|
||||
@@ -98,10 +99,11 @@ none, middle, high, xhigh, max
|
||||
```
|
||||
|
||||
When configured or changed with `/model thinking ...`, the value is sent as a
|
||||
top-level request field named `thinking`. For OpenAI reasoning models on the
|
||||
Responses API, set `thinking_param: reasoning` so the level is sent as the
|
||||
official `reasoning: {"effort": ...}` field; agentu maps its `middle` level to
|
||||
the official `medium` value and passes `none`, `high`, `xhigh`, `max` through.
|
||||
top-level request field. The default field depends on `api_type`: `chat` uses
|
||||
`thinking`, while `responses` uses the official `reasoning` field, sent as
|
||||
`{"effort": ...}` with agentu's `middle` level mapped to the official `medium`
|
||||
value (`none`, `high`, `xhigh`, `max` pass through). Override with
|
||||
`thinking_param` if a provider expects a different field name.
|
||||
|
||||
## CLI Flags
|
||||
|
||||
|
||||
Reference in New Issue
Block a user