chore(core): refactor model resolution and cleanup fallback logic (#15228)

This commit is contained in:
Adam Weidman
2025-12-22 10:18:51 -05:00
committed by GitHub
parent 350267e8c4
commit d1e46ad79a
9 changed files with 28 additions and 60 deletions
-12
View File
@@ -25,18 +25,6 @@ export async function handleFallback(
failedModel: string,
authType?: string,
error?: unknown,
): Promise<string | boolean | null> {
return handlePolicyDrivenFallback(config, failedModel, authType, error);
}
/**
* New fallback logic using the ModelAvailabilityService
*/
async function handlePolicyDrivenFallback(
config: Config,
failedModel: string,
authType?: string,
error?: unknown,
): Promise<string | boolean | null> {
if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
return null;