Skip to content

Commit 728eae9

Browse files
chore: generate
1 parent eb84f46 commit 728eae9

5 files changed

Lines changed: 17 additions & 25 deletions

File tree

packages/llm/src/protocols/openai-responses.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ const lowerMessages = Effect.fn("OpenAIResponses.lowerMessages")(function* (requ
361361
const existing = reasoningItems[reasoning.id]
362362
if (existing) {
363363
existing.summary.push(...reasoning.summary)
364-
if (typeof reasoning.encrypted_content === "string") existing.encrypted_content = reasoning.encrypted_content
364+
if (typeof reasoning.encrypted_content === "string")
365+
existing.encrypted_content = reasoning.encrypted_content
365366
continue
366367
}
367368
reasoningItems[reasoning.id] = reasoning
@@ -568,9 +569,7 @@ const onReasoningDelta = (state: ParserState, event: OpenAIResponsesEvent): Step
568569
const events: LLMEvent[] = []
569570
const itemID = event.item_id ?? "reasoning-0"
570571
const id =
571-
event.summary_index !== undefined || state.reasoningItems[itemID]
572-
? `${itemID}:${event.summary_index ?? 0}`
573-
: itemID
572+
event.summary_index !== undefined || state.reasoningItems[itemID] ? `${itemID}:${event.summary_index ?? 0}` : itemID
574573
return [
575574
{
576575
...state,

packages/llm/test/fixtures/recordings/openai-responses/openai-responses-gpt-5-5-reasoning.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
"route": "openai-responses",
88
"transport": "http",
99
"model": "gpt-5.5",
10-
"tags": [
11-
"prefix:openai-responses",
12-
"provider:openai",
13-
"flagship",
14-
"reasoning",
15-
"golden"
16-
]
10+
"tags": ["prefix:openai-responses", "provider:openai", "flagship", "reasoning", "golden"]
1711
},
1812
"interactions": [
1913
{

packages/llm/test/tool-runtime.test.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,10 @@ describe("LLMClient tools", () => {
319319
return input.respond(
320320
bodies.length === 1
321321
? sseEvents(
322-
{ type: "response.output_item.added", item: { type: "reasoning", id: "rs_1", encrypted_content: null } },
322+
{
323+
type: "response.output_item.added",
324+
item: { type: "reasoning", id: "rs_1", encrypted_content: null },
325+
},
323326
{ type: "response.reasoning_summary_part.added", item_id: "rs_1", summary_index: 0 },
324327
{ type: "response.reasoning_summary_part.done", item_id: "rs_1", summary_index: 0 },
325328
{
@@ -328,7 +331,13 @@ describe("LLMClient tools", () => {
328331
},
329332
{
330333
type: "response.output_item.added",
331-
item: { type: "function_call", id: "item_1", call_id: "call_1", name: "get_weather", arguments: "" },
334+
item: {
335+
type: "function_call",
336+
id: "item_1",
337+
call_id: "call_1",
338+
name: "get_weather",
339+
arguments: "",
340+
},
332341
},
333342
{ type: "response.function_call_arguments.delta", item_id: "item_1", delta: '{"city":"Paris"}' },
334343
{

packages/opencode/test/fixtures/recordings/session/native-openai-oauth-tool-loop.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
"provider": "openai",
77
"protocol": "openai-responses",
88
"route": "openai-responses",
9-
"tags": [
10-
"opencode",
11-
"native",
12-
"oauth",
13-
"tool-loop"
14-
]
9+
"tags": ["opencode", "native", "oauth", "tool-loop"]
1510
},
1611
"interactions": [
1712
{

packages/opencode/test/fixtures/recordings/session/native-zen-tool-loop.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
"provider": "opencode",
77
"protocol": "openai-responses",
88
"route": "openai-responses",
9-
"tags": [
10-
"opencode",
11-
"zen",
12-
"native",
13-
"tool-loop"
14-
]
9+
"tags": ["opencode", "zen", "native", "tool-loop"]
1510
},
1611
"interactions": [
1712
{

0 commit comments

Comments
 (0)