mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
fix(services): pass provider to refreshWithRetry to avoid tripping generic circuit breaker
This commit is contained in:
@@ -1840,7 +1840,8 @@ export async function handleChatCore({
|
||||
const newCredentials = (await refreshWithRetry(
|
||||
() => executor.refreshCredentials(credentials, log),
|
||||
3,
|
||||
log
|
||||
log,
|
||||
provider // Explicitly pass the provider to avoid universally tripping the "unknown" circuit breaker
|
||||
)) as null | {
|
||||
accessToken?: string;
|
||||
copilotToken?: string;
|
||||
|
||||
Reference in New Issue
Block a user