Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1610627
refactor(openai-shim): extract request execution
jatmn Jul 18, 2026
b0d8ba1
fix(openai-shim): rebase executor extraction
jatmn Jul 18, 2026
7ef850b
test(openai-shim): preserve local stream options coverage
jatmn Jul 18, 2026
e508f0b
test(openai-shim): isolate Azure compatibility state
jatmn Jul 18, 2026
dcc2da9
fix(openai-shim): preserve executor retry contracts
jatmn Jul 30, 2026
3259f25
fix(openai-shim): retain route credential isolation
jatmn Jul 30, 2026
2642ebe
fix(openai-shim): preserve executor transport behavior
jatmn Jul 30, 2026
1dc1cbb
fix(openai-shim): avoid duplicate local retries
jatmn Jul 30, 2026
33b65f0
fix(openai-shim): preserve LongCat credential routing
jatmn Jul 30, 2026
05ebfa6
fix(openai-shim): retain executor abort contracts
jatmn Jul 30, 2026
99d6966
fix(openai-shim): preserve fallback cancellation
jatmn Jul 30, 2026
805b8b6
fix(openai-shim): preserve executor retry and transport contracts
jatmn Jul 30, 2026
8726767
fix(openai-shim): stabilize extracted executor smoke coverage
jatmn Jul 30, 2026
0fa19e7
test(openai-shim): cover extracted executor retry contracts
jatmn Jul 30, 2026
7638a36
test(openai-shim): assert redacted HTTP errors
jatmn Jul 30, 2026
9bdb776
test(openai-shim): isolate Azure executor configuration
jatmn Jul 30, 2026
c0d8eb5
fix(openai-shim): preserve executor recovery retries
jatmn Jul 30, 2026
368b5f3
test(openai-shim): remove migrated executor duplicates
jatmn Jul 30, 2026
7b494b2
docs(openai-shim): clarify extracted façade budget
jatmn Jul 30, 2026
8c3cb39
test(openai-shim): enforce extraction modules
jatmn Jul 30, 2026
fbebf7a
fix(openai-shim): stop retrying cooled GitHub keys
jatmn Jul 30, 2026
7e30882
fix(openai-shim): avoid concurrent cooled-key retries
jatmn Jul 30, 2026
b0d3846
test(openai-shim): stabilize pooled-key retry coverage
jatmn Jul 30, 2026
cf50221
fix(openai-shim): preserve newer credential cooldowns
jatmn Jul 30, 2026
b548b49
docs(openai-shim): explain stale auth eviction
jatmn Jul 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/services/api/credentialPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ export class CredentialPool {
return { value: fallback.value, index: leastRecentlyFailedIndex }
}

hasAvailableCredential(): boolean {
const now = this.now()
return this.credentials.some(
credential => !credential.disabled && credential.cooldownUntil <= now,
)
}

reportSuccess(lease: CredentialLease | null): void {
if (!lease) return
const credential = this.credentials[lease.index]
Expand Down
Loading