mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 22:14:37 +00:00
chore: generate
This commit is contained in:
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]
|
||||
if (existing) {
|
||||
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
|
||||
}
|
||||
reasoningItems[reasoning.id] = reasoning
|
||||
|
|
@ -568,9 +569,7 @@ const onReasoningDelta = (state: ParserState, event: OpenAIResponsesEvent): Step
|
|||
const events: LLMEvent[] = []
|
||||
const itemID = event.item_id ?? "reasoning-0"
|
||||
const id =
|
||||
event.summary_index !== undefined || state.reasoningItems[itemID]
|
||||
? `${itemID}:${event.summary_index ?? 0}`
|
||||
: itemID
|
||||
event.summary_index !== undefined || state.reasoningItems[itemID] ? `${itemID}:${event.summary_index ?? 0}` : itemID
|
||||
return [
|
||||
{
|
||||
...state,
|
||||
|
|
|
|||
|
|
@ -7,13 +7,7 @@
|
|||
"route": "openai-responses",
|
||||
"transport": "http",
|
||||
"model": "gpt-5.5",
|
||||
"tags": [
|
||||
"prefix:openai-responses",
|
||||
"provider:openai",
|
||||
"flagship",
|
||||
"reasoning",
|
||||
"golden"
|
||||
]
|
||||
"tags": ["prefix:openai-responses", "provider:openai", "flagship", "reasoning", "golden"]
|
||||
},
|
||||
"interactions": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -319,7 +319,10 @@ describe("LLMClient tools", () => {
|
|||
return input.respond(
|
||||
bodies.length === 1
|
||||
? 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.done", item_id: "rs_1", summary_index: 0 },
|
||||
{
|
||||
|
|
@ -328,7 +331,13 @@ describe("LLMClient tools", () => {
|
|||
},
|
||||
{
|
||||
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"}' },
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,12 +6,7 @@
|
|||
"provider": "openai",
|
||||
"protocol": "openai-responses",
|
||||
"route": "openai-responses",
|
||||
"tags": [
|
||||
"opencode",
|
||||
"native",
|
||||
"oauth",
|
||||
"tool-loop"
|
||||
]
|
||||
"tags": ["opencode", "native", "oauth", "tool-loop"]
|
||||
},
|
||||
"interactions": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,12 +6,7 @@
|
|||
"provider": "opencode",
|
||||
"protocol": "openai-responses",
|
||||
"route": "openai-responses",
|
||||
"tags": [
|
||||
"opencode",
|
||||
"zen",
|
||||
"native",
|
||||
"tool-loop"
|
||||
]
|
||||
"tags": ["opencode", "zen", "native", "tool-loop"]
|
||||
},
|
||||
"interactions": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue