mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
feat: extract shared auth utility and fix custom provider model resolution
This commit is contained in:
@@ -1511,7 +1511,7 @@ function CompatibleModelsSection({
|
||||
});
|
||||
|
||||
if (!customModelRes.ok) {
|
||||
let errorData = {};
|
||||
let errorData: { error?: { message?: string } } = {};
|
||||
try {
|
||||
errorData = await customModelRes.json();
|
||||
} catch (jsonError) {
|
||||
@@ -1519,7 +1519,6 @@ function CompatibleModelsSection({
|
||||
}
|
||||
throw new Error(errorData.error?.message || "Failed to save custom model");
|
||||
}
|
||||
}
|
||||
|
||||
// Only create alias after customModel is saved successfully
|
||||
await onSetAlias(modelId, resolvedAlias, providerStorageAlias);
|
||||
|
||||
Reference in New Issue
Block a user