+ )}
>
)}
diff --git a/webview-ui/src/i18n/locales/ca/settings.json b/webview-ui/src/i18n/locales/ca/settings.json
index 75feccd2ddb..0f67ea24108 100644
--- a/webview-ui/src/i18n/locales/ca/settings.json
+++ b/webview-ui/src/i18n/locales/ca/settings.json
@@ -87,6 +87,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Clau de l'API d'OpenRouter",
"openRouterApiKeyPlaceholder": "Introduïu la vostra clau de l'API d'OpenRouter",
+ "openRouterProviderRoutingLabel": "Encaminament de proveïdors d'OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter dirigeix les sol·licituds als millors proveïdors disponibles per al vostre model d'embedding. Per defecte, les sol·licituds s'equilibren entre els principals proveïdors per maximitzar el temps de funcionament. No obstant això, podeu triar un proveïdor específic per utilitzar amb aquest model.",
"openaiCompatibleProvider": "Compatible amb OpenAI",
"openAiKeyLabel": "Clau API OpenAI",
"openAiKeyPlaceholder": "Introduïu la vostra clau API OpenAI",
diff --git a/webview-ui/src/i18n/locales/de/settings.json b/webview-ui/src/i18n/locales/de/settings.json
index 2b380115780..5a3fe4402b0 100644
--- a/webview-ui/src/i18n/locales/de/settings.json
+++ b/webview-ui/src/i18n/locales/de/settings.json
@@ -89,6 +89,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter API-Schlüssel",
"openRouterApiKeyPlaceholder": "Gib deinen OpenRouter API-Schlüssel ein",
+ "openRouterProviderRoutingLabel": "OpenRouter Anbieter-Routing",
+ "openRouterProviderRoutingDescription": "OpenRouter leitet Anfragen an die besten verfügbaren Anbieter für dein Embedding-Modell weiter. Standardmäßig werden Anfragen über die Top-Anbieter lastverteilt, um maximale Verfügbarkeit zu gewährleisten. Du kannst jedoch einen bestimmten Anbieter für dieses Modell auswählen.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "API-Schlüssel:",
"mistralApiKeyPlaceholder": "Gib deinen Mistral-API-Schlüssel ein",
diff --git a/webview-ui/src/i18n/locales/en/settings.json b/webview-ui/src/i18n/locales/en/settings.json
index 7548d44be19..dd6cb156fe8 100644
--- a/webview-ui/src/i18n/locales/en/settings.json
+++ b/webview-ui/src/i18n/locales/en/settings.json
@@ -98,6 +98,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter API Key",
"openRouterApiKeyPlaceholder": "Enter your OpenRouter API key",
+ "openRouterProviderRoutingLabel": "OpenRouter Provider Routing",
+ "openRouterProviderRoutingDescription": "OpenRouter routes requests to the best available providers for your embedding model. By default, requests are load balanced across the top providers to maximize uptime. However, you can choose a specific provider to use for this model.",
"openaiCompatibleProvider": "OpenAI Compatible",
"openAiKeyLabel": "OpenAI API Key",
"openAiKeyPlaceholder": "Enter your OpenAI API key",
diff --git a/webview-ui/src/i18n/locales/es/settings.json b/webview-ui/src/i18n/locales/es/settings.json
index 8519938d4af..054de846738 100644
--- a/webview-ui/src/i18n/locales/es/settings.json
+++ b/webview-ui/src/i18n/locales/es/settings.json
@@ -89,6 +89,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Clave de API de OpenRouter",
"openRouterApiKeyPlaceholder": "Introduce tu clave de API de OpenRouter",
+ "openRouterProviderRoutingLabel": "Enrutamiento de proveedores de OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter dirige las solicitudes a los mejores proveedores disponibles para su modelo de embedding. Por defecto, las solicitudes se equilibran entre los principales proveedores para maximizar el tiempo de actividad. Sin embargo, puede elegir un proveedor específico para este modelo.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "Clave API:",
"mistralApiKeyPlaceholder": "Introduce tu clave de API de Mistral",
diff --git a/webview-ui/src/i18n/locales/fr/settings.json b/webview-ui/src/i18n/locales/fr/settings.json
index 13f54eb59fd..99f4f884be8 100644
--- a/webview-ui/src/i18n/locales/fr/settings.json
+++ b/webview-ui/src/i18n/locales/fr/settings.json
@@ -89,6 +89,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Clé d'API OpenRouter",
"openRouterApiKeyPlaceholder": "Entrez votre clé d'API OpenRouter",
+ "openRouterProviderRoutingLabel": "Routage des fournisseurs OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter dirige les requêtes vers les meilleurs fournisseurs disponibles pour votre modèle d'embedding. Par défaut, les requêtes sont équilibrées entre les principaux fournisseurs pour maximiser la disponibilité. Cependant, vous pouvez choisir un fournisseur spécifique à utiliser pour ce modèle.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "Clé d'API:",
"mistralApiKeyPlaceholder": "Entrez votre clé d'API Mistral",
diff --git a/webview-ui/src/i18n/locales/hi/settings.json b/webview-ui/src/i18n/locales/hi/settings.json
index b9ceadc55bf..d6f23c244fd 100644
--- a/webview-ui/src/i18n/locales/hi/settings.json
+++ b/webview-ui/src/i18n/locales/hi/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "ओपनराउटर",
"openRouterApiKeyLabel": "ओपनराउटर एपीआई कुंजी",
"openRouterApiKeyPlaceholder": "अपनी ओपनराउटर एपीआई कुंजी दर्ज करें",
+ "openRouterProviderRoutingLabel": "OpenRouter प्रदाता रूटिंग",
+ "openRouterProviderRoutingDescription": "OpenRouter आपके एम्बेडिंग मॉडल के लिए सर्वोत्तम उपलब्ध प्रदाताओं को अनुरोध भेजता है। डिफ़ॉल्ट रूप से, अपटाइम को अधिकतम करने के लिए अनुरोधों को शीर्ष प्रदाताओं के बीच संतुलित किया जाता है। हालांकि, आप इस मॉडल के लिए उपयोग करने के लिए एक विशिष्ट प्रदाता चुन सकते हैं।",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "API कुंजी:",
"mistralApiKeyPlaceholder": "अपनी मिस्ट्रल एपीआई कुंजी दर्ज करें",
diff --git a/webview-ui/src/i18n/locales/id/settings.json b/webview-ui/src/i18n/locales/id/settings.json
index 2426f8be3cf..20f03b3b058 100644
--- a/webview-ui/src/i18n/locales/id/settings.json
+++ b/webview-ui/src/i18n/locales/id/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Kunci API OpenRouter",
"openRouterApiKeyPlaceholder": "Masukkan kunci API OpenRouter Anda",
+ "openRouterProviderRoutingLabel": "Perutean Provider OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter mengarahkan permintaan ke provider terbaik yang tersedia untuk model embedding Anda. Secara default, permintaan diseimbangkan beban di seluruh provider teratas untuk memaksimalkan uptime. Namun, Anda dapat memilih provider spesifik untuk digunakan untuk model ini.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "Kunci API:",
"mistralApiKeyPlaceholder": "Masukkan kunci API Mistral Anda",
diff --git a/webview-ui/src/i18n/locales/it/settings.json b/webview-ui/src/i18n/locales/it/settings.json
index 752b8a6dd20..c947581d7e8 100644
--- a/webview-ui/src/i18n/locales/it/settings.json
+++ b/webview-ui/src/i18n/locales/it/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Chiave API OpenRouter",
"openRouterApiKeyPlaceholder": "Inserisci la tua chiave API OpenRouter",
+ "openRouterProviderRoutingLabel": "Routing dei fornitori OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter indirizza le richieste ai migliori fornitori disponibili per il tuo modello di embedding. Per impostazione predefinita, le richieste sono bilanciate tra i principali fornitori per massimizzare il tempo di attività. Tuttavia, puoi scegliere un fornitore specifico da utilizzare per questo modello.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "Chiave API:",
"mistralApiKeyPlaceholder": "Inserisci la tua chiave API Mistral",
diff --git a/webview-ui/src/i18n/locales/ja/settings.json b/webview-ui/src/i18n/locales/ja/settings.json
index 9281f3be15a..0bb303b7230 100644
--- a/webview-ui/src/i18n/locales/ja/settings.json
+++ b/webview-ui/src/i18n/locales/ja/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter APIキー",
"openRouterApiKeyPlaceholder": "OpenRouter APIキーを入力してください",
+ "openRouterProviderRoutingLabel": "OpenRouterプロバイダールーティング",
+ "openRouterProviderRoutingDescription": "OpenRouterは、埋め込みモデルに最適な利用可能なプロバイダーにリクエストをルーティングします。デフォルトでは、稼働時間を最大化するために、リクエストはトッププロバイダー間で負荷分散されます。ただし、このモデルに使用する特定のプロバイダーを選択することもできます。",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "APIキー:",
"mistralApiKeyPlaceholder": "Mistral APIキーを入力してください",
diff --git a/webview-ui/src/i18n/locales/ko/settings.json b/webview-ui/src/i18n/locales/ko/settings.json
index c555b81f243..65a4604eb89 100644
--- a/webview-ui/src/i18n/locales/ko/settings.json
+++ b/webview-ui/src/i18n/locales/ko/settings.json
@@ -87,6 +87,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter API 키",
"openRouterApiKeyPlaceholder": "OpenRouter API 키를 입력하세요",
+ "openRouterProviderRoutingLabel": "OpenRouter 공급자 라우팅",
+ "openRouterProviderRoutingDescription": "OpenRouter는 임베딩 모델에 가장 적합한 공급자로 요청을 라우팅합니다. 기본적으로 요청은 가동 시간을 최대화하기 위해 상위 공급자 간에 로드 밸런싱됩니다. 그러나 이 모델에 사용할 특정 공급자를 선택할 수 있습니다.",
"openaiCompatibleProvider": "OpenAI 호환",
"openAiKeyLabel": "OpenAI API 키",
"openAiKeyPlaceholder": "OpenAI API 키를 입력하세요",
diff --git a/webview-ui/src/i18n/locales/nl/settings.json b/webview-ui/src/i18n/locales/nl/settings.json
index 01da609400c..1dc7f59fcef 100644
--- a/webview-ui/src/i18n/locales/nl/settings.json
+++ b/webview-ui/src/i18n/locales/nl/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter API-sleutel",
"openRouterApiKeyPlaceholder": "Voer uw OpenRouter API-sleutel in",
+ "openRouterProviderRoutingLabel": "OpenRouter Provider Routing",
+ "openRouterProviderRoutingDescription": "OpenRouter stuurt verzoeken naar de best beschikbare providers voor uw embedding model. Standaard worden verzoeken verdeeld over de beste providers om de uptime te maximaliseren. U kunt echter een specifieke provider kiezen om voor dit model te gebruiken.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "API-sleutel:",
"mistralApiKeyPlaceholder": "Voer uw Mistral API-sleutel in",
diff --git a/webview-ui/src/i18n/locales/pl/settings.json b/webview-ui/src/i18n/locales/pl/settings.json
index a8cf0eca78e..0b5d1c15e5b 100644
--- a/webview-ui/src/i18n/locales/pl/settings.json
+++ b/webview-ui/src/i18n/locales/pl/settings.json
@@ -87,6 +87,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Klucz API OpenRouter",
"openRouterApiKeyPlaceholder": "Wprowadź swój klucz API OpenRouter",
+ "openRouterProviderRoutingLabel": "Routing dostawców OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter kieruje żądania do najlepszych dostępnych dostawców dla Twojego modelu osadzania. Domyślnie żądania są równoważone między najlepszymi dostawcami, aby zmaksymalizować czas działania. Możesz jednak wybrać konkretnego dostawcę do użycia z tym modelem.",
"openaiCompatibleProvider": "Kompatybilny z OpenAI",
"openAiKeyLabel": "Klucz API OpenAI",
"openAiKeyPlaceholder": "Wprowadź swój klucz API OpenAI",
diff --git a/webview-ui/src/i18n/locales/pt-BR/settings.json b/webview-ui/src/i18n/locales/pt-BR/settings.json
index 0cb0c48afd5..0e157404ced 100644
--- a/webview-ui/src/i18n/locales/pt-BR/settings.json
+++ b/webview-ui/src/i18n/locales/pt-BR/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Chave de API do OpenRouter",
"openRouterApiKeyPlaceholder": "Digite sua chave de API do OpenRouter",
+ "openRouterProviderRoutingLabel": "Roteamento de Provedores OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter direciona solicitações para os melhores provedores disponíveis para seu modelo de embedding. Por padrão, as solicitações são balanceadas entre os principais provedores para maximizar o tempo de atividade. No entanto, você pode escolher um provedor específico para usar com este modelo.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "Chave de API:",
"mistralApiKeyPlaceholder": "Digite sua chave de API da Mistral",
diff --git a/webview-ui/src/i18n/locales/ru/settings.json b/webview-ui/src/i18n/locales/ru/settings.json
index 69cca8038f5..40644c764a2 100644
--- a/webview-ui/src/i18n/locales/ru/settings.json
+++ b/webview-ui/src/i18n/locales/ru/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Ключ API OpenRouter",
"openRouterApiKeyPlaceholder": "Введите свой ключ API OpenRouter",
+ "openRouterProviderRoutingLabel": "Маршрутизация провайдера OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter направляет запросы к лучшим доступным провайдерам для вашей модели эмбеддинга. По умолчанию запросы балансируются между топовыми провайдерами для максимальной доступности. Однако вы можете выбрать конкретного провайдера для этой модели.",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "Ключ API:",
"mistralApiKeyPlaceholder": "Введите свой API-ключ Mistral",
diff --git a/webview-ui/src/i18n/locales/tr/settings.json b/webview-ui/src/i18n/locales/tr/settings.json
index c4491f618c2..130c4091412 100644
--- a/webview-ui/src/i18n/locales/tr/settings.json
+++ b/webview-ui/src/i18n/locales/tr/settings.json
@@ -87,6 +87,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter API Anahtarı",
"openRouterApiKeyPlaceholder": "OpenRouter API anahtarınızı girin",
+ "openRouterProviderRoutingLabel": "OpenRouter Sağlayıcı Yönlendirmesi",
+ "openRouterProviderRoutingDescription": "OpenRouter, gömme modeliniz için mevcut en iyi sağlayıcılara istekleri yönlendirir. Varsayılan olarak, istekler çalışma süresini en üst düzeye çıkarmak için en iyi sağlayıcılar arasında dengelenir. Ancak, bu model için kullanılacak belirli bir sağlayıcı seçebilirsiniz.",
"openaiCompatibleProvider": "OpenAI Uyumlu",
"openAiKeyLabel": "OpenAI API Anahtarı",
"openAiKeyPlaceholder": "OpenAI API anahtarınızı girin",
diff --git a/webview-ui/src/i18n/locales/vi/settings.json b/webview-ui/src/i18n/locales/vi/settings.json
index 8691d3e7db2..3f04c852260 100644
--- a/webview-ui/src/i18n/locales/vi/settings.json
+++ b/webview-ui/src/i18n/locales/vi/settings.json
@@ -87,6 +87,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "Khóa API OpenRouter",
"openRouterApiKeyPlaceholder": "Nhập khóa API OpenRouter của bạn",
+ "openRouterProviderRoutingLabel": "Định tuyến nhà cung cấp OpenRouter",
+ "openRouterProviderRoutingDescription": "OpenRouter chuyển hướng yêu cầu đến các nhà cung cấp tốt nhất hiện có cho mô hình nhúng của bạn. Theo mặc định, các yêu cầu được cân bằng giữa các nhà cung cấp hàng đầu để tối đa hóa thời gian hoạt động. Tuy nhiên, bạn có thể chọn một nhà cung cấp cụ thể để sử dụng cho mô hình này.",
"openaiCompatibleProvider": "Tương thích OpenAI",
"openAiKeyLabel": "Khóa API OpenAI",
"openAiKeyPlaceholder": "Nhập khóa API OpenAI của bạn",
diff --git a/webview-ui/src/i18n/locales/zh-CN/settings.json b/webview-ui/src/i18n/locales/zh-CN/settings.json
index 39684435896..9a2f2d08d3f 100644
--- a/webview-ui/src/i18n/locales/zh-CN/settings.json
+++ b/webview-ui/src/i18n/locales/zh-CN/settings.json
@@ -89,6 +89,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter API 密钥",
"openRouterApiKeyPlaceholder": "输入您的 OpenRouter API 密钥",
+ "openRouterProviderRoutingLabel": "OpenRouter 提供商路由",
+ "openRouterProviderRoutingDescription": "OpenRouter 将请求路由到适合您嵌入模型的最佳可用提供商。默认情况下,请求会在顶级提供商之间进行负载均衡以最大化正常运行时间。但是,您可以为此模型选择特定的提供商。",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "API 密钥:",
"mistralApiKeyPlaceholder": "输入您的 Mistral API 密钥",
diff --git a/webview-ui/src/i18n/locales/zh-TW/settings.json b/webview-ui/src/i18n/locales/zh-TW/settings.json
index 6dc3eada7f9..198883b5919 100644
--- a/webview-ui/src/i18n/locales/zh-TW/settings.json
+++ b/webview-ui/src/i18n/locales/zh-TW/settings.json
@@ -84,6 +84,8 @@
"openRouterProvider": "OpenRouter",
"openRouterApiKeyLabel": "OpenRouter API 金鑰",
"openRouterApiKeyPlaceholder": "輸入您的 OpenRouter API 金鑰",
+ "openRouterProviderRoutingLabel": "OpenRouter 供應商路由",
+ "openRouterProviderRoutingDescription": "OpenRouter 會將請求路由到適合您嵌入模型的最佳可用供應商。預設情況下,請求會在頂尖供應商之間進行負載平衡以最大化正常運作時間。您也可以為此模型選擇特定的供應商。",
"mistralProvider": "Mistral",
"mistralApiKeyLabel": "API 金鑰:",
"mistralApiKeyPlaceholder": "輸入您的 Mistral API 金鑰",
diff --git a/webview-ui/src/utils/test-utils.tsx b/webview-ui/src/utils/test-utils.tsx
index ad5659ec33a..5a6f187ab53 100644
--- a/webview-ui/src/utils/test-utils.tsx
+++ b/webview-ui/src/utils/test-utils.tsx
@@ -1,5 +1,6 @@
import React from "react"
import { render, RenderOptions } from "@testing-library/react"
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { TooltipProvider } from "@src/components/ui/tooltip"
import { STANDARD_TOOLTIP_DELAY } from "@src/components/ui/standard-tooltip"
@@ -9,7 +10,20 @@ interface AllTheProvidersProps {
}
const AllTheProviders = ({ children }: AllTheProvidersProps) => {
- return {children}
+ // Create a new QueryClient for each test to avoid state leakage
+ const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ retry: false, // Disable retries in tests
+ },
+ },
+ })
+
+ return (
+
+ {children}
+
+ )
}
const customRender = (ui: React.ReactElement, options?: Omit) =>