code cleanup and test fix

This commit is contained in:
Badri Narayanan S
2025-12-21 20:25:20 +05:30
parent c703fb32fb
commit f282b36d1e
4 changed files with 19 additions and 21 deletions

View File

@@ -399,7 +399,6 @@ export function convertAnthropicToGoogle(anthropicRequest) {
const isClaudeModel = modelName.toLowerCase().includes('claude');
const isClaudeThinkingModel = isClaudeModel && modelName.toLowerCase().includes('thinking');
const googleRequest = {
contents: [],
generationConfig: {}
@@ -629,7 +628,6 @@ export function convertGoogleToAnthropic(googleResponse, model) {
// Handle the response wrapper
const response = googleResponse.response || googleResponse;
const candidates = response.candidates || [];
const firstCandidate = candidates[0] || {};
const content = firstCandidate.content || {};