Files
OmniRoute/open-sse/config/antigravityUpstream.ts
Diego Rodrigues de Sa e Souza 91b6983564 Release v3.8.1 (#2441)
Release v3.8.1 — feature flags settings page, bracketed combo names, security hardening, multi-driver SQLite
2026-05-21 01:29:12 -03:00

21 lines
735 B
TypeScript

export const ANTIGRAVITY_BASE_URLS = Object.freeze([
"https://daily-cloudcode-pa.googleapis.com",
"https://cloudcode-pa.googleapis.com",
"https://daily-cloudcode-pa.sandbox.googleapis.com",
]);
const ANTIGRAVITY_MODELS_PATH = "/v1internal:models";
const ANTIGRAVITY_FETCH_AVAILABLE_MODELS_PATH = "/v1internal:fetchAvailableModels";
function buildAntigravityUrls(path: string): string[] {
return ANTIGRAVITY_BASE_URLS.map((baseUrl) => `${baseUrl}${path}`);
}
export function getAntigravityModelsDiscoveryUrls(): string[] {
return buildAntigravityUrls(ANTIGRAVITY_MODELS_PATH);
}
export function getAntigravityFetchAvailableModelsUrls(): string[] {
return buildAntigravityUrls(ANTIGRAVITY_FETCH_AVAILABLE_MODELS_PATH);
}