Refactor provider around fixed regions and friendly model ids

Co-authored-by: Simon Shi <simonsmh@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-08-31 17:11:18 +00:00
co-authored by Simon Shi
parent 63c517002e
commit 9d88e995ee
27 changed files with 400 additions and 488 deletions
+3 -3
View File
@@ -136,9 +136,9 @@ async function recordRegion(region: Region, pat: string): Promise<void> {
return response;
}) as typeof fetch;
const { credentialsFromPat } = await import("../src/pat.js");
const { getCachedModelConfig, getCachedModels, updateQoderModelsCache } = await import("../src/models.js");
const { streamQoder } = await import("../src/stream.js");
const { credentialsFromPat } = await import("../src/auth/pat.js");
const { getCachedModelConfig, getCachedModels, updateQoderModelsCache } = await import("../src/catalog.js");
const { streamQoder } = await import("../src/protocol/stream.js");
const credentials = (await credentialsFromPat(pat, region)) as unknown as {
access: string;