You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"embeddings:textExceedsTokenLimit": `Text at index ${params?.index} exceeds maximum token limit (${params?.itemTokens} > ${params?.maxTokens}). Skipping.`,
31
31
"embeddings:rateLimitRetry": `Rate limit hit, retrying in ${params?.delayMs}ms (attempt ${params?.attempt}/${params?.maxRetries})`,
32
32
"embeddings:unknownError": "Unknown error",
33
+
"common:errors.api.invalidKeyInvalidChars":
34
+
"API key contains invalid characters. Please check your API key for special characters.",
33
35
}
34
36
returntranslations[key]||key
35
37
},
36
38
}))
37
39
40
+
// Mock i18n/setup module used by the error handler
41
+
vitest.mock("../../../../i18n/setup",()=>({
42
+
default: {
43
+
t: (key: string)=>{
44
+
consttranslations: Record<string,string>={
45
+
"common:errors.api.invalidKeyInvalidChars":
46
+
"API key contains invalid characters. Please check your API key for special characters.",
0 commit comments