Explorar o código

fix for azure models not liking tool definitions

Dax Raad hai 8 meses
pai
achega
b2fb0508ea
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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,
   }