Fix google provider support
This commit is contained in:
parent
b0713a844c
commit
8639be0766
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "anyclaude",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"author": {
|
||||
"name": "coder",
|
||||
"email": "support@coder.com",
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ export function providerizeSchema(
|
|||
if (typeof property === "object" && property !== null) {
|
||||
let processedProperty = property as JSONSchema7;
|
||||
|
||||
// Remove uri format for OpenAI
|
||||
if (provider === "openai" && processedProperty.format === "uri") {
|
||||
// Remove uri format for OpenAI and Google
|
||||
if ((provider === "openai" || provider === "google") && processedProperty.format === "uri") {
|
||||
processedProperty = { ...processedProperty };
|
||||
delete processedProperty.format;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue