Merge pull request #489 from yshngg/patch-1
fix(migrations): skip unhandled AI providers during migration execution
This commit is contained in:
@@ -36,6 +36,19 @@ export const runMigrations = async () => {
|
|||||||
const config = getConfig();
|
const config = getConfig();
|
||||||
if (config.OCO_AI_PROVIDER === OCO_AI_PROVIDER_ENUM.TEST) return;
|
if (config.OCO_AI_PROVIDER === OCO_AI_PROVIDER_ENUM.TEST) return;
|
||||||
|
|
||||||
|
// skip unhandled providers in migration00
|
||||||
|
if (
|
||||||
|
[
|
||||||
|
OCO_AI_PROVIDER_ENUM.DEEPSEEK,
|
||||||
|
OCO_AI_PROVIDER_ENUM.GROQ,
|
||||||
|
OCO_AI_PROVIDER_ENUM.MISTRAL,
|
||||||
|
OCO_AI_PROVIDER_ENUM.MLX,
|
||||||
|
OCO_AI_PROVIDER_ENUM.OPENROUTER,
|
||||||
|
].includes(config.OCO_AI_PROVIDER)
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const completedMigrations = getCompletedMigrations();
|
const completedMigrations = getCompletedMigrations();
|
||||||
|
|
||||||
let isMigrated = false;
|
let isMigrated = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user