Skip to content

Commit f2255d9

Browse files
hannesrudolphdaniel-lxs
authored andcommitted
fix: prevent indexer hanging on OpenAI insufficient quota errors (#5350)
1 parent a83e8c0 commit f2255d9

22 files changed

+188
-2
lines changed

src/i18n/locales/ca/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "No s'han pogut crear les incrustacions: ha fallat l'autenticació. Comproveu la vostra clau d'API.",
44
"failedWithStatus": "No s'han pogut crear les incrustacions després de {{attempts}} intents: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "No s'han pogut crear les incrustacions després de {{attempts}} intents: {{errorMessage}}",
6+
"insufficientQuota": "No s'han pogut crear les incrustacions: Quota insuficient. Comproveu el saldo del vostre compte OpenAI i afegiu crèdits per continuar.",
67
"failedMaxAttempts": "No s'han pogut crear les incrustacions després de {{attempts}} intents",
78
"textExceedsTokenLimit": "El text a l'índex {{index}} supera el límit màxim de testimonis ({{itemTokens}} > {{maxTokens}}). S'està ometent.",
9+
"textWithPrefixExceedsTokenLimit": "El text a l'índex {{index}} amb prefix supera el límit màxim de tokens ({{estimatedTokens}} > {{maxTokens}}). No s'afegirà el prefix.",
810
"rateLimitRetry": "S'ha assolit el límit de velocitat, es torna a intentar en {{delayMs}}ms (intent {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "No s'ha pogut llegir el cos de l'error",

src/i18n/locales/de/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "Erstellung von Einbettungen fehlgeschlagen: Authentifizierung fehlgeschlagen. Bitte überprüfe deinen API-Schlüssel.",
44
"failedWithStatus": "Erstellung von Einbettungen nach {{attempts}} Versuchen fehlgeschlagen: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "Erstellung von Einbettungen nach {{attempts}} Versuchen fehlgeschlagen: {{errorMessage}}",
6+
"insufficientQuota": "Erstellung von Einbettungen fehlgeschlagen: Unzureichendes Kontingent. Bitte überprüfen Sie Ihr OpenAI-Kontoguthaben und fügen Sie Credits hinzu, um fortzufahren.",
67
"failedMaxAttempts": "Erstellung von Einbettungen nach {{attempts}} Versuchen fehlgeschlagen",
78
"textExceedsTokenLimit": "Text bei Index {{index}} überschreitet das maximale Token-Limit ({{itemTokens}} > {{maxTokens}}). Wird übersprungen.",
9+
"textWithPrefixExceedsTokenLimit": "Text bei Index {{index}} mit Präfix überschreitet das maximale Token-Limit ({{estimatedTokens}} > {{maxTokens}}). Präfix wird nicht hinzugefügt.",
810
"rateLimitRetry": "Ratenlimit erreicht, Wiederholung in {{delayMs}}ms (Versuch {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "Fehlerinhalt konnte nicht gelesen werden",

src/i18n/locales/en/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "Failed to create embeddings: Authentication failed. Please check your API key.",
44
"failedWithStatus": "Failed to create embeddings after {{attempts}} attempts: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "Failed to create embeddings after {{attempts}} attempts: {{errorMessage}}",
6+
"insufficientQuota": "Failed to create embeddings: Insufficient quota. Please check your OpenAI account balance and add credits to continue.",
67
"failedMaxAttempts": "Failed to create embeddings after {{attempts}} attempts",
78
"textExceedsTokenLimit": "Text at index {{index}} exceeds maximum token limit ({{itemTokens}} > {{maxTokens}}). Skipping.",
9+
"textWithPrefixExceedsTokenLimit": "Text at index {{index}} with prefix exceeds maximum token limit ({{estimatedTokens}} > {{maxTokens}}). Not adding prefix.",
810
"rateLimitRetry": "Rate limit hit, retrying in {{delayMs}}ms (attempt {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "Could not read error body",

src/i18n/locales/es/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "No se pudieron crear las incrustaciones: Error de autenticación. Comprueba tu clave de API.",
44
"failedWithStatus": "No se pudieron crear las incrustaciones después de {{attempts}} intentos: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "No se pudieron crear las incrustaciones después de {{attempts}} intentos: {{errorMessage}}",
6+
"insufficientQuota": "No se pudieron crear las incrustaciones: Cuota insuficiente. Por favor, verifique el saldo de su cuenta OpenAI y agregue créditos para continuar.",
67
"failedMaxAttempts": "No se pudieron crear las incrustaciones después de {{attempts}} intentos",
78
"textExceedsTokenLimit": "El texto en el índice {{index}} supera el límite máximo de tokens ({{itemTokens}} > {{maxTokens}}). Omitiendo.",
9+
"textWithPrefixExceedsTokenLimit": "El texto en el índice {{index}} con prefijo excede el límite máximo de tokens ({{estimatedTokens}} > {{maxTokens}}). No se agrega el prefijo.",
810
"rateLimitRetry": "Límite de velocidad alcanzado, reintentando en {{delayMs}}ms (intento {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "No se pudo leer el cuerpo del error",

src/i18n/locales/fr/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "Échec de la création des embeddings : Échec de l'authentification. Veuillez vérifier votre clé API.",
44
"failedWithStatus": "Échec de la création des embeddings après {{attempts}} tentatives : HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "Échec de la création des embeddings après {{attempts}} tentatives : {{errorMessage}}",
6+
"insufficientQuota": "Échec de la création des embeddings : Quota insuffisant. Veuillez vérifier le solde de votre compte OpenAI et ajouter des crédits pour continuer.",
67
"failedMaxAttempts": "Échec de la création des embeddings après {{attempts}} tentatives",
78
"textExceedsTokenLimit": "Le texte à l'index {{index}} dépasse la limite maximale de tokens ({{itemTokens}} > {{maxTokens}}). Ignoré.",
9+
"textWithPrefixExceedsTokenLimit": "Le texte à l'index {{index}} avec préfixe dépasse la limite maximale de jetons ({{estimatedTokens}} > {{maxTokens}}). Ne pas ajouter de préfixe.",
810
"rateLimitRetry": "Limite de débit atteinte, nouvelle tentative dans {{delayMs}}ms (tentative {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "Impossible de lire le corps de l'erreur",

src/i18n/locales/hi/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "एम्बेडिंग बनाने में विफल: प्रमाणीकरण विफल। कृपया अपनी एपीआई कुंजी जांचें।",
44
"failedWithStatus": "{{attempts}} प्रयासों के बाद एम्बेडिंग बनाने में विफल: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "{{attempts}} प्रयासों के बाद एम्बेडिंग बनाने में विफल: {{errorMessage}}",
6+
"insufficientQuota": "एम्बेडिंग बनाने में विफल: अपर्याप्त कोटा। कृपया अपने OpenAI खाते की शेष राशि जांचें और जारी रखने के लिए क्रेडिट जोड़ें।",
67
"failedMaxAttempts": "{{attempts}} प्रयासों के बाद एम्बेडिंग बनाने में विफल",
78
"textExceedsTokenLimit": "अनुक्रमणिका {{index}} पर पाठ अधिकतम टोकन सीमा ({{itemTokens}} > {{maxTokens}}) से अधिक है। छोड़ा जा रहा है।",
9+
"textWithPrefixExceedsTokenLimit": "उपसर्ग के साथ इंडेक्स {{index}} पर टेक्स्ट अधिकतम टोकन सीमा ({{estimatedTokens}} > {{maxTokens}}) से अधिक है। उपसर्ग नहीं जोड़ा जा रहा है।",
810
"rateLimitRetry": "दर सीमा समाप्त, {{delayMs}}ms में पुन: प्रयास किया जा रहा है (प्रयास {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "त्रुटि सामग्री पढ़ नहीं सका",

src/i18n/locales/id/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "Gagal membuat embeddings: Autentikasi gagal. Silakan periksa API key Anda.",
44
"failedWithStatus": "Gagal membuat embeddings setelah {{attempts}} percobaan: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "Gagal membuat embeddings setelah {{attempts}} percobaan: {{errorMessage}}",
6+
"insufficientQuota": "Gagal membuat embeddings: Kuota tidak mencukupi. Silakan periksa saldo akun OpenAI Anda dan tambahkan kredit untuk melanjutkan.",
67
"failedMaxAttempts": "Gagal membuat embeddings setelah {{attempts}} percobaan",
78
"textExceedsTokenLimit": "Teks pada indeks {{index}} melebihi batas maksimum token ({{itemTokens}} > {{maxTokens}}). Dilewati.",
9+
"textWithPrefixExceedsTokenLimit": "Teks di indeks {{index}} dengan awalan melebihi batas token maksimum ({{estimatedTokens}} > {{maxTokens}}). Tidak menambahkan awalan.",
810
"rateLimitRetry": "Batas rate tercapai, mencoba lagi dalam {{delayMs}}ms (percobaan {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "Tidak dapat membaca body error",

src/i18n/locales/it/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "Creazione degli embedding non riuscita: Autenticazione fallita. Controlla la tua chiave API.",
44
"failedWithStatus": "Creazione degli embedding non riuscita dopo {{attempts}} tentativi: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "Creazione degli embedding non riuscita dopo {{attempts}} tentativi: {{errorMessage}}",
6+
"insufficientQuota": "Creazione degli embedding non riuscita: Quota insufficiente. Controlla il saldo del tuo account OpenAI e aggiungi crediti per continuare.",
67
"failedMaxAttempts": "Creazione degli embedding non riuscita dopo {{attempts}} tentativi",
78
"textExceedsTokenLimit": "Il testo all'indice {{index}} supera il limite massimo di token ({{itemTokens}} > {{maxTokens}}). Saltato.",
9+
"textWithPrefixExceedsTokenLimit": "Il testo all'indice {{index}} con prefisso supera il limite massimo di token ({{estimatedTokens}} > {{maxTokens}}). Non aggiungo il prefisso.",
810
"rateLimitRetry": "Limite di velocità raggiunto, nuovo tentativo tra {{delayMs}}ms (tentativo {{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "Impossibile leggere il corpo dell'errore",

src/i18n/locales/ja/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "埋め込みの作成に失敗しました:認証に失敗しました。APIキーを確認してください。",
44
"failedWithStatus": "{{attempts}}回試行しましたが、埋め込みの作成に失敗しました:HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "{{attempts}}回試行しましたが、埋め込みの作成に失敗しました:{{errorMessage}}",
6+
"insufficientQuota": "埋め込みの作成に失敗しました:クォータが不足しています。OpenAIアカウントの残高を確認し、続行するためにクレジットを追加してください。",
67
"failedMaxAttempts": "{{attempts}}回試行しましたが、埋め込みの作成に失敗しました",
78
"textExceedsTokenLimit": "インデックス{{index}}のテキストが最大トークン制限を超えています({{itemTokens}}> {{maxTokens}})。スキップします。",
9+
"textWithPrefixExceedsTokenLimit": "インデックス {{index}} のプレフィックス付きテキストが最大トークン制限 ({{estimatedTokens}} > {{maxTokens}}) を超えています。プレフィिक्सを追加しません。",
810
"rateLimitRetry": "レート制限に達しました。{{delayMs}}ミリ秒後に再試行します(試行{{attempt}}/{{maxRetries}})",
911
"ollama": {
1012
"couldNotReadErrorBody": "エラー本文を読み取れませんでした",

src/i18n/locales/ko/embeddings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"authenticationFailed": "임베딩 생성 실패: 인증에 실패했습니다. API 키를 확인하세요.",
44
"failedWithStatus": "{{attempts}}번 시도 후 임베딩 생성 실패: HTTP {{statusCode}} - {{errorMessage}}",
55
"failedWithError": "{{attempts}}번 시도 후 임베딩 생성 실패: {{errorMessage}}",
6+
"insufficientQuota": "임베딩 생성 실패: 할당량이 부족합니다. OpenAI 계정 잔액을 확인하고 계속하려면 크레딧을 추가하세요.",
67
"failedMaxAttempts": "{{attempts}}번 시도 후 임베딩 생성 실패",
78
"textExceedsTokenLimit": "인덱스 {{index}}의 텍스트가 최대 토큰 제한({{itemTokens}} > {{maxTokens}})을 초과했습니다. 건너뜁니다.",
9+
"textWithPrefixExceedsTokenLimit": "접두사가 있는 인덱스 {{index}}의 텍스트가 최대 토큰 제한({{estimatedTokens}} > {{maxTokens}})을 초과했습니다. 접두사를 추가하지 않습니다.",
810
"rateLimitRetry": "속도 제한에 도달했습니다. {{delayMs}}ms 후에 다시 시도합니다(시도 {{attempt}}/{{maxRetries}}).",
911
"ollama": {
1012
"couldNotReadErrorBody": "오류 본문을 읽을 수 없습니다",

0 commit comments

Comments
 (0)