mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-27 12:42:13 +00:00
fix(ai): remove obsolete reasoning summary aliases (#44733)
This commit is contained in:
parent
6a687398eb
commit
0164c1c8bc
2 changed files with 1 additions and 2 deletions
|
|
@ -1186,7 +1186,6 @@ export const step = (state: ParserState, event: Event) => {
|
|||
if (
|
||||
event.type === "response.reasoning.done" ||
|
||||
event.type === "response.reasoning_summary_text.done" ||
|
||||
event.type === "response.reasoning_summary.done" ||
|
||||
event.type === "response.reasoning_text.done"
|
||||
) {
|
||||
if (!event.item_id) return ProviderShared.eventError(state.id, `${event.type} is missing item_id`)
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ const HOSTED_TOOLS = {
|
|||
} as const satisfies ResponsesHostedTools.Definitions
|
||||
|
||||
const step = (state: OpenResponses.ParserState, event: OpenResponses.Event) => {
|
||||
if (event.type === "response.reasoning_text.delta" || event.type === "response.reasoning_summary.delta")
|
||||
if (event.type === "response.reasoning_text.delta")
|
||||
return event.item_id
|
||||
? Effect.succeed(OpenResponses.onReasoningDelta(state, event, event.item_id))
|
||||
: ProviderShared.eventError(ADAPTER, `${event.type} is missing item_id`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue