Skip to content

Commit 7685a75

Browse files
committed
test(opencode): avoid forced tool choice in live replay
1 parent 9e977d1 commit 7685a75

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

extensions/opencode/opencode.live.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ describeLive("opencode plugin live", () => {
6565
apiKey: OPENCODE_API_KEY,
6666
reasoning: "low",
6767
maxTokens: 128,
68-
toolChoice: "required",
6968
} as const;
7069

7170
const first = await completeSimple(
@@ -74,7 +73,7 @@ describeLive("opencode plugin live", () => {
7473
messages: [
7574
{
7675
role: "user",
77-
content: "Use live_echo with value ok. Do not answer directly.",
76+
content: "You must call the live_echo tool with value ok. Do not answer directly.",
7877
timestamp: Date.now(),
7978
},
8079
],
@@ -96,7 +95,7 @@ describeLive("opencode plugin live", () => {
9695
messages: [
9796
{
9897
role: "user",
99-
content: "Use live_echo with value ok. Do not answer directly.",
98+
content: "You must call the live_echo tool with value ok. Do not answer directly.",
10099
timestamp: Date.now() - 3,
101100
},
102101
first,

0 commit comments

Comments
 (0)