Skip to content

Commit 2e24c8e

Browse files
committed
feat: add LM Studio error messages and validation handling in embedder
1 parent cd24032 commit 2e24c8e

File tree

20 files changed

+389
-17
lines changed

20 files changed

+389
-17
lines changed

src/i18n/locales/ca/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "El model d'Ollama no és capaç de fer incrustacions: {{modelId}}",
1818
"hostNotFound": "No s'ha trobat l'amfitrió d'Ollama: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "El servidor de LM Studio no s'està executant a {{baseUrl}}. Assegureu-vos que LM Studio s'estigui executant amb el servidor local activat.",
22+
"modelNotFound": "No s'ha trobat el model \"{{modelId}}\" a LM Studio. Assegureu-vos que el model estigui carregat a LM Studio.",
23+
"hostNotFound": "No es pot connectar a LM Studio a {{baseUrl}}. Comproveu la configuració de l'URL base."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "Error desconegut en processar el fitxer {{filePath}}",
2227
"unknownErrorDeletingPoints": "Error desconegut en eliminar els punts per a {{filePath}}",

src/i18n/locales/de/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "Ollama-Modell ist nicht für Einbettungen geeignet: {{modelId}}",
1818
"hostNotFound": "Ollama-Host nicht gefunden: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "Der LM Studio-Server wird unter {{baseUrl}} nicht ausgeführt. Bitte stelle sicher, dass LM Studio mit aktiviertem lokalen Server läuft.",
22+
"modelNotFound": "Modell \"{{modelId}}\" in LM Studio nicht gefunden. Bitte stelle sicher, dass das Modell in LM Studio geladen ist.",
23+
"hostNotFound": "Verbindung zu LM Studio unter {{baseUrl}} nicht möglich. Bitte überprüfe die Konfiguration der Basis-URL."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "Unbekannter Fehler beim Verarbeiten der Datei {{filePath}}",
2227
"unknownErrorDeletingPoints": "Unbekannter Fehler beim Löschen der Punkte für {{filePath}}",

src/i18n/locales/en/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "Ollama model is not embedding capable: {{modelId}}",
1818
"hostNotFound": "Ollama host not found: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "LM Studio server is not running at {{baseUrl}}. Please ensure LM Studio is running with the local server enabled.",
22+
"modelNotFound": "Model \"{{modelId}}\" not found in LM Studio. Please ensure the model is loaded in LM Studio.",
23+
"hostNotFound": "Cannot connect to LM Studio at {{baseUrl}}. Please check the base URL configuration."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "Unknown error processing file {{filePath}}",
2227
"unknownErrorDeletingPoints": "Unknown error deleting points for {{filePath}}",

src/i18n/locales/es/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "El modelo Ollama no es capaz de realizar incrustaciones: {{modelId}}",
1818
"hostNotFound": "No se encuentra el host de Ollama: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "El servidor de LM Studio no se está ejecutando en {{baseUrl}}. Asegúrate de que LM Studio se esté ejecutando con el servidor local habilitado.",
22+
"modelNotFound": "No se encontró el modelo \"{{modelId}}\" en LM Studio. Asegúrate de que el modelo esté cargado en LM Studio.",
23+
"hostNotFound": "No se puede conectar a LM Studio en {{baseUrl}}. Comprueba la configuración de la URL base."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "Error desconocido procesando archivo {{filePath}}",
2227
"unknownErrorDeletingPoints": "Error desconocido eliminando puntos para {{filePath}}",

src/i18n/locales/fr/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "Le modèle Ollama n'est pas capable d'intégrer : {{modelId}}",
1818
"hostNotFound": "Hôte Ollama introuvable : {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "Le serveur LM Studio n'est pas en cours d'exécution à {{baseUrl}}. Veuillez vous assurer que LM Studio est en cours d'exécution avec le serveur local activé.",
22+
"modelNotFound": "Le modèle \"{{modelId}}\" n'a pas été trouvé dans LM Studio. Veuillez vous assurer que le modèle est chargé dans LM Studio.",
23+
"hostNotFound": "Impossible de se connecter à LM Studio à {{baseUrl}}. Veuillez vérifier la configuration de l'URL de base."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "Erreur inconnue lors du traitement du fichier {{filePath}}",
2227
"unknownErrorDeletingPoints": "Erreur inconnue lors de la suppression des points pour {{filePath}}",

src/i18n/locales/hi/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "ओलामा मॉडल एम्बेडिंग में सक्षम नहीं है: {{modelId}}",
1818
"hostNotFound": "ओलामा होस्ट नहीं मिला: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "एलएम स्टूडियो सर्वर {{baseUrl}} पर नहीं चल रहा है। कृपया सुनिश्चित करें कि एलएम स्टूडियो स्थानीय सर्वर सक्षम के साथ चल रहा है।",
22+
"modelNotFound": "एलएम स्टूडियो में मॉडल \"{{modelId}}\" नहीं मिला। कृपया सुनिश्चित करें कि मॉडल एलएम स्टूडियो में लोड किया गया है।",
23+
"hostNotFound": "{{baseUrl}} पर एलएम स्टूडियो से कनेक्ट नहीं हो सकता। कृपया आधार यूआरएल कॉन्फ़िगरेशन की जांच करें।"
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "फ़ाइल {{filePath}} प्रसंस्करण में अज्ञात त्रुटि",
2227
"unknownErrorDeletingPoints": "{{filePath}} के लिए बिंदु हटाने में अज्ञात त्रुटि",

src/i18n/locales/id/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "Model Ollama tidak mampu melakukan embedding: {{modelId}}",
1818
"hostNotFound": "Host Ollama tidak ditemukan: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "Server LM Studio tidak berjalan di {{baseUrl}}. Pastikan LM Studio berjalan dengan server lokal diaktifkan.",
22+
"modelNotFound": "Model \"{{modelId}}\" tidak ditemukan di LM Studio. Pastikan model dimuat di LM Studio.",
23+
"hostNotFound": "Tidak dapat terhubung ke LM Studio di {{baseUrl}}. Silakan periksa konfigurasi URL dasar."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "Error tidak dikenal saat memproses file {{filePath}}",
2227
"unknownErrorDeletingPoints": "Error tidak dikenal saat menghapus points untuk {{filePath}}",

src/i18n/locales/it/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "Il modello Ollama non è in grado di eseguire l'embedding: {{modelId}}",
1818
"hostNotFound": "Host Ollama non trovato: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "Il server di LM Studio non è in esecuzione su {{baseUrl}}. Assicurati che LM Studio sia in esecuzione con il server locale abilitato.",
22+
"modelNotFound": "Modello \"{{modelId}}\" non trovato in LM Studio. Assicurati che il modello sia caricato in LM Studio.",
23+
"hostNotFound": "Impossibile connettersi a LM Studio su {{baseUrl}}. Controlla la configurazione dell'URL di base."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "Errore sconosciuto nell'elaborazione del file {{filePath}}",
2227
"unknownErrorDeletingPoints": "Errore sconosciuto nell'eliminazione dei punti per {{filePath}}",

src/i18n/locales/ja/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "Ollamaモデルは埋め込みに対応していません:{{modelId}}",
1818
"hostNotFound": "Ollamaホストが見つかりません:{{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "LM Studioサーバーが{{baseUrl}}で実行されていません。LM Studioがローカルサーバーを有効にして実行されていることを確認してください。",
22+
"modelNotFound": "モデル「{{modelId}}」がLM Studioで見つかりません。モデルがLM Studioにロードされていることを確認してください。",
23+
"hostNotFound": "{{baseUrl}}のLM Studioに接続できません。ベースURLの構成を確認してください。"
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "ファイル{{filePath}}の処理中に不明なエラーが発生しました",
2227
"unknownErrorDeletingPoints": "{{filePath}}のポイント削除中に不明なエラーが発生しました",

src/i18n/locales/ko/embeddings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"modelNotEmbeddingCapable": "Ollama 모델은 임베딩이 불가능합니다: {{modelId}}",
1818
"hostNotFound": "Ollama 호스트를 찾을 수 없습니다: {{baseUrl}}"
1919
},
20+
"lmstudio": {
21+
"serviceNotRunning": "LM Studio 서버가 {{baseUrl}}에서 실행되고 있지 않습니다. 로컬 서버가 활성화된 상태로 LM Studio가 실행 중인지 확인하세요.",
22+
"modelNotFound": "LM Studio에서 \"{{modelId}}\" 모델을 찾을 수 없습니다. 모델이 LM Studio에 로드되었는지 확인하세요.",
23+
"hostNotFound": "{{baseUrl}}에서 LM Studio에 연결할 수 없습니다. 기본 URL 구성을 확인하세요."
24+
},
2025
"scanner": {
2126
"unknownErrorProcessingFile": "파일 {{filePath}} 처리 중 알 수 없는 오류",
2227
"unknownErrorDeletingPoints": "{{filePath}}의 포인트 삭제 중 알 수 없는 오류",

0 commit comments

Comments
 (0)