This commit is contained in:
seb
2026-10-05 22:27:23 +02:00
parent af0ef29e22
commit 18699eb40b
7 changed files with 61 additions and 50 deletions

View File

@@ -373,7 +373,7 @@ export function createAnalyzeImageTool({ googleAuthId, model }) {
: question || 'Describe this image, judge its visual quality, flag any watermark, text overlay or defect, and say whether it is usable as a product or category image.';
const apiKey = await resolveOpenRouterKey(googleAuthId);
const provider = new OpenRouterProvider({ apiKey });
const provider = new OpenRouterProvider({ apiKey, apiUrl: env.openrouterApiUrl });
const response = await provider.chatCompletions({
model,
messages: [