Skip to content

Commit b2fb050

Browse files
committed
fix for azure models not liking tool definitions
1 parent 93f4252 commit b2fb050

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/opencode/src/provider/provider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ export namespace Provider {
322322
...t,
323323
parameters: optionalToNullable(t.parameters),
324324
})),
325+
azure: TOOLS.map((t) => ({
326+
...t,
327+
parameters: optionalToNullable(t.parameters),
328+
})),
325329
google: TOOLS,
326330
}
327331

0 commit comments

Comments
 (0)