feat: Switch enrichment to use OpenRouter provider

- enrichData now uses same AI provider switch as vision
- Both scan and enrichment use OpenRouter by default
- Added retry logic for rate limits
- Uses Nebius/FP8 provider preferences
- Logs which provider is being used
This commit is contained in:
2025-12-26 00:16:48 +01:00
parent ce49c9e347
commit e978499b54
3 changed files with 126 additions and 30 deletions

View File

@@ -37,7 +37,7 @@ export function getOpenRouterClient(): OpenAI {
}
// Default OpenRouter model for vision tasks
export const OPENROUTER_VISION_MODEL = 'google/gemma-3-27b-it:free';
export const OPENROUTER_VISION_MODEL = 'google/gemma-3-27b-it';
/**
* OpenRouter provider preferences