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",
|
"name": "anyclaude",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "coder",
|
"name": "coder",
|
||||||
"email": "support@coder.com",
|
"email": "support@coder.com",
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ export function providerizeSchema(
|
||||||
if (typeof property === "object" && property !== null) {
|
if (typeof property === "object" && property !== null) {
|
||||||
let processedProperty = property as JSONSchema7;
|
let processedProperty = property as JSONSchema7;
|
||||||
|
|
||||||
// Remove uri format for OpenAI
|
// Remove uri format for OpenAI and Google
|
||||||
if (provider === "openai" && processedProperty.format === "uri") {
|
if ((provider === "openai" || provider === "google") && processedProperty.format === "uri") {
|
||||||
processedProperty = { ...processedProperty };
|
processedProperty = { ...processedProperty };
|
||||||
delete processedProperty.format;
|
delete processedProperty.format;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue