Add per-chat thinking levels for Codex, Claude Code and OpenCode
Codex: model/list supportedReasoningEfforts per model, turn/start effort, thread reasoningEffort as the current level. Claude Code: initialize supportedEffortLevels, apply_flag_settings effortLevel at the next turn start. OpenCode v2: model variants via the session model endpoint. chat_effort sets a level; rows and chat_models carry the levels; Codex and Claude levels persist in operator_sessions.chat_effort and are re-applied before every turn.
This commit is contained in:
@@ -240,6 +240,9 @@ type Message struct {
|
||||
ChatModes []ChatMode `json:"chat_modes,omitempty"`
|
||||
// ModeRequest is the chat_mode body and echoed selection.
|
||||
ModeRequest *ChatModeRequest `json:"chat_mode,omitempty"`
|
||||
// EffortRequest is the chat_effort body and reply, and the chat's current
|
||||
// thinking level on a chat_models reply.
|
||||
EffortRequest *ChatEffortRequest `json:"chat_effort,omitempty"`
|
||||
// ChatSubscribe attaches this connection to one session's shared stream; the
|
||||
// body names the session like ChatQuery. A chat_prompt response sets
|
||||
// ChatQueued when the prompt had to wait for an in-flight turn and was
|
||||
|
||||
Reference in New Issue
Block a user