Skip to content

Commit 3545e9e

Browse files
committed
fix typescript error
1 parent ecc266d commit 3545e9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/api/providers/__tests__/opencode-go.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ describe("OpencodeGoHandler", () => {
606606
it("includes tools and tool_choice in the Anthropic request when tools are provided", async () => {
607607
const handler = new OpencodeGoHandler(anthropicOptions)
608608
const messages: Anthropic.Messages.MessageParam[] = [{ role: "user", content: "Hi" }]
609-
const tools = [
609+
const tools: OpenAI.Chat.ChatCompletionTool[] = [
610610
{
611611
type: "function",
612612
function: {
@@ -617,7 +617,7 @@ describe("OpencodeGoHandler", () => {
617617
},
618618
]
619619

620-
for await (const _chunk of handler.createMessage("sys", messages, { tools })) {
620+
for await (const _chunk of handler.createMessage("sys", messages, { taskId: "test-task", tools })) {
621621
void _chunk
622622
}
623623

0 commit comments

Comments
 (0)