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
{{ message }}
Repository navigation
Commit e715c5b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(knowledge): name embedding quota, key, and deadline failures in knowledge search (#8405)
* fix(knowledge): name embedding quota, key, and deadline failures in knowledge search
* fix(knowledge): keep keyless Ollama and mixed fallback quota attribution accurate
* test(embeddings): prove the quota pause through returned errors, not mock call counts
internalErrorResponse(500,{error: 'Failed to process knowledge upload request'}),
41
47
}
42
48
49
+
constBYOK_EMBEDDING_QUOTA_SEARCH_MESSAGE=
50
+
"Knowledge search could not run: this workspace's embedding API key (Settings > Provider API keys) has no remaining quota. Add credit with the provider or replace the key."
51
+
constBYOK_EMBEDDING_REJECTED_SEARCH_MESSAGE=
52
+
"Knowledge search could not run: this workspace's embedding API key (Settings > Provider API keys) was rejected. Update the key and try again."
53
+
constPLATFORM_EMBEDDING_QUOTA_SEARCH_MESSAGE=
54
+
'Knowledge search is temporarily unavailable because the embedding provider has no remaining quota. Try again later.'
55
+
56
+
/**
57
+
* Names the failures a caller can act on instead of collapsing them into the generic
58
+
* vector-search `500`. Every status stays `5xx`, so retry and alerting behavior keyed
59
+
* on server errors is unchanged; only the message and the specific code differ.
0 commit comments