Răsfoiți Sursa

fix for azure models not liking tool definitions

Dax Raad 8 luni în urmă
părinte
comite
b2fb0508ea
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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,
   }