chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-24 01:08:00 +00:00
parent eb84f461b8
commit 728eae9c25
5 changed files with 17 additions and 25 deletions
@@ -361,7 +361,8 @@ const lowerMessages = Effect.fn("OpenAIResponses.lowerMessages")(function* (requ
const existing = reasoningItems[reasoning.id] const existing = reasoningItems[reasoning.id]
if (existing) { if (existing) {
existing.summary.push(...reasoning.summary) existing.summary.push(...reasoning.summary)
if (typeof reasoning.encrypted_content === "string") existing.encrypted_content = reasoning.encrypted_content if (typeof reasoning.encrypted_content === "string")
existing.encrypted_content = reasoning.encrypted_content
continue continue
} }
reasoningItems[reasoning.id] = reasoning reasoningItems[reasoning.id] = reasoning
@@ -568,9 +569,7 @@ const onReasoningDelta = (state: ParserState, event: OpenAIResponsesEvent): Step
const events: LLMEvent[] = [] const events: LLMEvent[] = []
const itemID = event.item_id ?? "reasoning-0" const itemID = event.item_id ?? "reasoning-0"
const id = const id =
event.summary_index !== undefined || state.reasoningItems[itemID] event.summary_index !== undefined || state.reasoningItems[itemID] ? `${itemID}:${event.summary_index ?? 0}` : itemID
? `${itemID}:${event.summary_index ?? 0}`
: itemID
return [ return [
{ {
...state, ...state,
@@ -7,13 +7,7 @@
"route": "openai-responses", "route": "openai-responses",
"transport": "http", "transport": "http",
"model": "gpt-5.5", "model": "gpt-5.5",
"tags": [ "tags": ["prefix:openai-responses", "provider:openai", "flagship", "reasoning", "golden"]
"prefix:openai-responses",
"provider:openai",
"flagship",
"reasoning",
"golden"
]
}, },
"interactions": [ "interactions": [
{ {
+11 -2
View File
@@ -319,7 +319,10 @@ describe("LLMClient tools", () => {
return input.respond( return input.respond(
bodies.length === 1 bodies.length === 1
? sseEvents( ? sseEvents(
{ type: "response.output_item.added", item: { type: "reasoning", id: "rs_1", encrypted_content: null } }, {
type: "response.output_item.added",
item: { type: "reasoning", id: "rs_1", encrypted_content: null },
},
{ type: "response.reasoning_summary_part.added", item_id: "rs_1", summary_index: 0 }, { type: "response.reasoning_summary_part.added", item_id: "rs_1", summary_index: 0 },
{ type: "response.reasoning_summary_part.done", item_id: "rs_1", summary_index: 0 }, { type: "response.reasoning_summary_part.done", item_id: "rs_1", summary_index: 0 },
{ {
@@ -328,7 +331,13 @@ describe("LLMClient tools", () => {
}, },
{ {
type: "response.output_item.added", type: "response.output_item.added",
item: { type: "function_call", id: "item_1", call_id: "call_1", name: "get_weather", arguments: "" }, item: {
type: "function_call",
id: "item_1",
call_id: "call_1",
name: "get_weather",
arguments: "",
},
}, },
{ type: "response.function_call_arguments.delta", item_id: "item_1", delta: '{"city":"Paris"}' }, { type: "response.function_call_arguments.delta", item_id: "item_1", delta: '{"city":"Paris"}' },
{ {
@@ -6,12 +6,7 @@
"provider": "openai", "provider": "openai",
"protocol": "openai-responses", "protocol": "openai-responses",
"route": "openai-responses", "route": "openai-responses",
"tags": [ "tags": ["opencode", "native", "oauth", "tool-loop"]
"opencode",
"native",
"oauth",
"tool-loop"
]
}, },
"interactions": [ "interactions": [
{ {
@@ -6,12 +6,7 @@
"provider": "opencode", "provider": "opencode",
"protocol": "openai-responses", "protocol": "openai-responses",
"route": "openai-responses", "route": "openai-responses",
"tags": [ "tags": ["opencode", "zen", "native", "tool-loop"]
"opencode",
"zen",
"native",
"tool-loop"
]
}, },
"interactions": [ "interactions": [
{ {