change cleanSchemaForGemini to cleanSchema

This commit is contained in:
Badri Narayanan S
2026-01-10 00:35:50 +05:30
parent e4145ad277
commit f1e945a7e6
2 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ import {
isThinkingModel
} from '../constants.js';
import { convertContentToParts, convertRole } from './content-converter.js';
import { sanitizeSchema, cleanSchemaForGemini } from './schema-sanitizer.js';
import { sanitizeSchema, cleanSchema } from './schema-sanitizer.js';
import {
restoreThinkingSignatures,
removeTrailingThinkingBlocks,
@@ -214,7 +214,7 @@ export function convertAnthropicToGoogle(anthropicRequest) {
// Cloud Code API which validates schemas using Google's protobuf format.
// This fixes issue #82: /compact command fails with schema transformation error
// "Proto field is not repeating, cannot start list" for Claude models.
parameters = cleanSchemaForGemini(parameters);
parameters = cleanSchema(parameters);
return {
name: String(name).replace(/[^a-zA-Z0-9_-]/g, '_').slice(0, 64),