Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 style: improve model provider ux #2439

Merged
merged 8 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions locales/ar/modelProvider.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"anthropic": {
"endpoint": {
"desc": "يجب أن يتضمن العنوان، بخلاف الافتراضي، http(s)://",
"placeholder": "https://api.anthropic.com",
"title": "عنوان وكيل API"
},
"title": "Anthropic",
"token": {
"desc": "أدخل مفتاح API الخاص بـ Anthropic",
Expand Down Expand Up @@ -67,11 +62,6 @@
}
},
"google": {
"endpoint": {
"desc": "بالإضافة إلى العنوان الافتراضي، يجب أن يتضمن http(s)://",
"placeholder": "https://generativelanguage.googleapis.com",
"title": "عنوان وكيل API"
},
"title": "Google",
"token": {
"desc": "أدخل مفتاح API الخاص بـ Google",
Expand Down Expand Up @@ -133,7 +123,8 @@
},
"ollama": {
"checker": {
"desc": "اختبر ما إذا تم إدخال عنوان الوكيل بشكل صحيح"
"desc": "اختبر ما إذا تم إدخال عنوان الوكيل بشكل صحيح",
"title": "فحص الاتصال"
},
"customModelName": {
"desc": "أضف نماذج مخصصة، استخدم الفاصلة (،) لفصل عدة نماذج",
Expand All @@ -142,7 +133,6 @@
},
"endpoint": {
"desc": "أدخل عنوان واجهة برمجة التطبيقات الخاص بـ Ollama، إذا لم يتم تحديده محليًا، يمكن تركه فارغًا",
"placeholder": "http://127.0.0.1:11434",
"title": "عنوان وكيل الواجهة"
},
"setup": {
Expand Down Expand Up @@ -172,11 +162,6 @@
"title": "Ollama"
},
"openai": {
"endpoint": {
"desc": "يجب أن يتضمن العنوان، بخلاف الافتراضي، http(s)://",
"placeholder": "https://api.openai.com/v1",
"title": "عنوان وكيل الواجهة"
},
"title": "OpenAI",
"token": {
"desc": "استخدم مفتاح OpenAI الخاص بك",
Expand Down
5 changes: 4 additions & 1 deletion locales/ar/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"checker": {
"button": "فحص",
"desc": "اختبار ما إذا كان مفتاح واجهة البرمجة وعنوان الوكيل مملوء بشكل صحيح",
"ollamaDesc": "اختبار عنوان الوكيل للتأكد من صحة الملء",
"pass": "تمت المراقبة",
"title": "فحص الاتصال"
},
Expand Down Expand Up @@ -96,6 +95,10 @@
"title": "قائمة النماذج",
"total": "متاح {{count}} نموذج"
},
"proxyUrl": {
"desc": "يجب أن يتضمن عنوان الوكيل API بالإضافة إلى العنوان الافتراضي http(s)://",
"title": "عنوان وكيل API"
},
"waitingForMore": "يتم <1>التخطيط لتوفير</1> المزيد من النماذج، ترقبوا المزيد ✨"
},
"ollama": {
Expand Down
19 changes: 2 additions & 17 deletions locales/bg-BG/modelProvider.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"anthropic": {
"endpoint": {
"desc": "Освен адреса по подразбиране, задължително трябва да включва http(s)://",
"placeholder": "https://api.anthropic.com",
"title": "Адрес на API прокси"
},
"title": "Anthropic",
"token": {
"desc": "Въведете API Key, получен от Anthropic",
Expand Down Expand Up @@ -67,11 +62,6 @@
}
},
"google": {
"endpoint": {
"desc": "Изисква се адрес, включително http(s)://, освен ако не е по подразбиране",
"placeholder": "https://generativelanguage.googleapis.com",
"title": "Адрес на API прокси"
},
"title": "Google",
"token": {
"desc": "Въведете API Key, получен от Google",
Expand Down Expand Up @@ -133,7 +123,8 @@
},
"ollama": {
"checker": {
"desc": "Тестване дали адресът на прокси е попълнен правилно"
"desc": "Тестване дали адресът на прокси е попълнен правилно",
"title": "Проверка на свързаност"
},
"customModelName": {
"desc": "Добавяне на персонализирани модели, използвайте запетая (,) за разделяне на множество модели",
Expand All @@ -142,7 +133,6 @@
},
"endpoint": {
"desc": "Въведете адрес на Ollama интерфейсния прокси, оставете празно, ако локално не е указано специално",
"placeholder": "http://127.0.0.1:11434",
"title": "Адрес на прокси интерфейс"
},
"setup": {
Expand Down Expand Up @@ -172,11 +162,6 @@
"title": "Ollama"
},
"openai": {
"endpoint": {
"desc": "Освен адреса по подразбиране, задължително трябва да включва http(s)://",
"placeholder": "https://api.openai.com/v1",
"title": "Адрес на прокси интерфейс"
},
"title": "OpenAI",
"token": {
"desc": "Използвайте собствения си OpenAI Key",
Expand Down
5 changes: 4 additions & 1 deletion locales/bg-BG/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"checker": {
"button": "Провери",
"desc": "Проверете дали API ключът и адресът на прокси сървъра са попълнени правилно",
"ollamaDesc": "Проверете дали адресът на прокси се попълва правилно",
"pass": "Проверката е успешна",
"title": "Проверка на свързаността"
},
Expand Down Expand Up @@ -96,6 +95,10 @@
"title": "Списък с модели",
"total": "Общо {{count}} налични модела"
},
"proxyUrl": {
"desc": "Включващ адреса по подразбиране, трябва да включва http(s)://",
"title": "Адрес на API прокси"
},
"waitingForMore": "Още модели са <1>планирани да бъдат добавени</1>, очаквайте ✨"
},
"ollama": {
Expand Down
19 changes: 2 additions & 17 deletions locales/de-DE/modelProvider.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"anthropic": {
"endpoint": {
"desc": "Muss neben der Standardadresse auch http(s):// enthalten",
"placeholder": "https://api.anthropic.com",
"title": "API-Proxy-Adresse"
},
"title": "Anthropic",
"token": {
"desc": "Geben Sie Ihren API-Key von Anthropic ein",
Expand Down Expand Up @@ -67,11 +62,6 @@
}
},
"google": {
"endpoint": {
"desc": "除默认地址外,必须包含 http(s)://",
"placeholder": "https://generativelanguage.googleapis.com",
"title": "API 代理地址"
},
"title": "Google",
"token": {
"desc": "Geben Sie Ihren API-Key von Google ein",
Expand Down Expand Up @@ -133,7 +123,8 @@
},
"ollama": {
"checker": {
"desc": "Testen Sie, ob die Proxy-Adresse korrekt eingetragen wurde"
"desc": "Testen Sie, ob die Proxy-Adresse korrekt eingetragen wurde",
"title": "Konnektivitätsprüfung"
},
"customModelName": {
"desc": "Fügen Sie benutzerdefinierte Modelle hinzu, trennen Sie mehrere Modelle mit Kommas (,)",
Expand All @@ -142,7 +133,6 @@
},
"endpoint": {
"desc": "Geben Sie die Proxy-Adresse der Ollama-Schnittstelle ein, leer lassen, wenn lokal nicht spezifiziert",
"placeholder": "http://127.0.0.1:11434",
"title": "Schnittstellen-Proxy-Adresse"
},
"setup": {
Expand Down Expand Up @@ -172,11 +162,6 @@
"title": "Ollama"
},
"openai": {
"endpoint": {
"desc": "Muss neben der Standardadresse auch http(s):// enthalten",
"placeholder": "https://api.openai.com/v1",
"title": "Schnittstellen-Proxy-Adresse"
},
"title": "OpenAI",
"token": {
"desc": "Verwenden Sie Ihren eigenen OpenAI-Key",
Expand Down
5 changes: 4 additions & 1 deletion locales/de-DE/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"checker": {
"button": "Überprüfen",
"desc": "Überprüfen Sie, ob der API-Schlüssel und die Proxy-Adresse korrekt eingegeben wurden",
"ollamaDesc": "Testen Sie, ob die Proxy-Adresse korrekt eingegeben wurde",
"pass": "Überprüfung bestanden",
"title": "Konnektivitätsprüfung"
},
Expand Down Expand Up @@ -96,6 +95,10 @@
"title": "Modellliste",
"total": "Insgesamt {{count}} Modelle verfügbar"
},
"proxyUrl": {
"desc": "Außer der Standardadresse muss http(s):// enthalten sein",
"title": "API-Proxy-Adresse"
},
"waitingForMore": "Weitere Modelle werden <1>geplant</1>, bitte freuen Sie sich auf weitere Updates ✨"
},
"ollama": {
Expand Down
19 changes: 2 additions & 17 deletions locales/en-US/modelProvider.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"anthropic": {
"endpoint": {
"desc": "Must include http(s):// in addition to the default address",
"placeholder": "https://api.anthropic.com",
"title": "API Proxy Address"
},
"title": "Anthropic",
"token": {
"desc": "Enter the API Key from Anthropic",
Expand Down Expand Up @@ -67,11 +62,6 @@
}
},
"google": {
"endpoint": {
"desc": "Must include http(s):// besides the default address",
"placeholder": "https://generativelanguage.googleapis.com",
"title": "API Proxy Address"
},
"title": "Google",
"token": {
"desc": "Enter the API Key from Google",
Expand Down Expand Up @@ -133,7 +123,8 @@
},
"ollama": {
"checker": {
"desc": "Test if the proxy address is correctly filled in"
"desc": "Test if the proxy address is correctly filled in",
"title": "Connectivity Check"
},
"customModelName": {
"desc": "Add custom models, separate multiple models with commas",
Expand All @@ -142,7 +133,6 @@
},
"endpoint": {
"desc": "Enter the Ollama interface proxy address, leave blank if not specified locally",
"placeholder": "http://127.0.0.1:11434",
"title": "Interface proxy address"
},
"setup": {
Expand Down Expand Up @@ -172,11 +162,6 @@
"title": "Ollama"
},
"openai": {
"endpoint": {
"desc": "Must include http(s):// besides the default address",
"placeholder": "https://api.openai.com/v1",
"title": "Interface proxy address"
},
"title": "OpenAI",
"token": {
"desc": "Use your own OpenAI Key",
Expand Down
5 changes: 4 additions & 1 deletion locales/en-US/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"checker": {
"button": "Check",
"desc": "Test if the Api Key and proxy address are filled in correctly",
"ollamaDesc": "Check if the proxy address is filled in correctly",
"pass": "Check Passed",
"title": "Connectivity Check"
},
Expand Down Expand Up @@ -96,6 +95,10 @@
"title": "Model List",
"total": "{{count}} models available in total"
},
"proxyUrl": {
"desc": "Must include http(s):// in addition to the default address",
"title": "API Proxy Address"
},
"waitingForMore": "More models are <1>planned to be added</1>, stay tuned ✨"
},
"ollama": {
Expand Down
19 changes: 2 additions & 17 deletions locales/es-ES/modelProvider.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"anthropic": {
"endpoint": {
"desc": "Además de la dirección predeterminada, debe incluir http(s)://",
"placeholder": "https://api.anthropic.com",
"title": "Dirección del proxy de API"
},
"title": "Anthropic",
"token": {
"desc": "Introduce la clave API proporcionada por Anthropic",
Expand Down Expand Up @@ -67,11 +62,6 @@
}
},
"google": {
"endpoint": {
"desc": "Aparte de la dirección predeterminada, debe incluir http(s)://",
"placeholder": "https://generativelanguage.googleapis.com",
"title": "Dirección del proxy de la API"
},
"title": "Google",
"token": {
"desc": "Introduce la clave API proporcionada por Google",
Expand Down Expand Up @@ -133,7 +123,8 @@
},
"ollama": {
"checker": {
"desc": "Prueba si la dirección del proxy de la interfaz se ha introducido correctamente"
"desc": "Prueba si la dirección del proxy de la interfaz se ha introducido correctamente",
"title": "Comprobación de conectividad"
},
"customModelName": {
"desc": "Añade modelos personalizados, separa múltiples modelos con comas (,)",
Expand All @@ -142,7 +133,6 @@
},
"endpoint": {
"desc": "Introduce la dirección del proxy de la interfaz de Ollama, déjalo en blanco si no se ha especificado localmente",
"placeholder": "http://127.0.0.1:11434",
"title": "Dirección del proxy de la interfaz"
},
"setup": {
Expand Down Expand Up @@ -172,11 +162,6 @@
"title": "Ollama"
},
"openai": {
"endpoint": {
"desc": "Además de la dirección predeterminada, debe incluir http(s)://",
"placeholder": "https://api.openai.com/v1",
"title": "Dirección del proxy de la interfaz"
},
"title": "OpenAI",
"token": {
"desc": "Usa tu propia clave de OpenAI",
Expand Down
5 changes: 4 additions & 1 deletion locales/es-ES/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"checker": {
"button": "Comprobar",
"desc": "Comprueba si la clave API y la dirección del proxy están escritas correctamente",
"ollamaDesc": "Verifica si la dirección del proxy está correctamente completada",
"pass": "Comprobación exitosa",
"title": "Comprobación de conectividad"
},
Expand Down Expand Up @@ -96,6 +95,10 @@
"title": "Lista de modelos",
"total": "Total de {{count}} modelos disponibles"
},
"proxyUrl": {
"desc": "Además de la dirección predeterminada, debe incluir http(s)://",
"title": "Dirección del proxy de la API"
},
"waitingForMore": "Más modelos están en <1>planificación para su incorporación</1>, ¡estén atentos! ✨"
},
"ollama": {
Expand Down
Loading
Loading