mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
chore: generate
This commit is contained in:
parent
6618e2bce2
commit
a2ee437a0e
3 changed files with 8 additions and 13 deletions
|
|
@ -6,11 +6,7 @@
|
|||
"provider": "anthropic",
|
||||
"protocol": "anthropic-messages",
|
||||
"route": "anthropic-messages",
|
||||
"tags": [
|
||||
"opencode",
|
||||
"native",
|
||||
"tool-loop"
|
||||
]
|
||||
"tags": ["opencode", "native", "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": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -168,7 +168,9 @@ function recordedNativeLLMLayer(spec: ProviderSpec) {
|
|||
Layer.provide(Provider.defaultLayer),
|
||||
Layer.provide(Plugin.defaultLayer),
|
||||
Layer.provide(recordedClient),
|
||||
Layer.provide(HttpRecorder.Cassette.fileSystem({ directory: FIXTURES_DIR }).pipe(Layer.provide(NodeFileSystem.layer))),
|
||||
Layer.provide(
|
||||
HttpRecorder.Cassette.fileSystem({ directory: FIXTURES_DIR }).pipe(Layer.provide(NodeFileSystem.layer)),
|
||||
),
|
||||
Layer.provide(RuntimeFlags.layer({ experimentalNativeLlm: true })),
|
||||
),
|
||||
)
|
||||
|
|
@ -206,7 +208,9 @@ const toolRoundtrip = (
|
|||
{ role: "assistant", content: [{ type: "tool-call", toolCallId: call.id, toolName: call.name, input: call.input }] },
|
||||
{
|
||||
role: "tool",
|
||||
content: [{ type: "tool-result", toolCallId: call.id, toolName: call.name, output: { type: "json", value: result } }],
|
||||
content: [
|
||||
{ type: "tool-result", toolCallId: call.id, toolName: call.name, output: { type: "json", value: result } },
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue