Browse Source

fix for azure models not liking tool definitions

Dax Raad 8 months ago
parent
commit
b2fb0508ea
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/opencode/src/provider/provider.ts

+ 4 - 0
packages/opencode/src/provider/provider.ts

@@ -322,6 +322,10 @@ export namespace Provider {
       ...t,
       parameters: optionalToNullable(t.parameters),
     })),
+    azure: TOOLS.map((t) => ({
+      ...t,
+      parameters: optionalToNullable(t.parameters),
+    })),
     google: TOOLS,
   }