fix: add OpenRouter embedding provider support

This commit is contained in:
Dounx
2026-03-19 23:03:34 +08:00
committed by lyingbug
parent cf9b935144
commit a9c2d61695
3 changed files with 23 additions and 3 deletions
@@ -341,9 +341,12 @@ const fallbackProviderOptions = computed(() => [
{
value: 'openrouter',
label: t('model.editor.providers.openrouter.label'),
defaultUrls: { chat: 'https://openrouter.ai/api/v1' },
defaultUrls: {
chat: 'https://openrouter.ai/api/v1',
embedding: 'https://openrouter.ai/api/v1'
},
description: t('model.editor.providers.openrouter.description'),
modelTypes: ['chat']
modelTypes: ['chat', 'embedding']
},
{
value: 'siliconflow',
@@ -1608,4 +1611,3 @@ const handleOverlayMouseUp = () => {
}
}
</style>