mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-16 20:02:45 +03:00
Check if model_capabilities table exists in SQLite before running SELECT query in loadModelCapabilities to prevent SQL error when the table has not been created yet. Co-authored-by: Austin Liu <austinliu@Austins-MacBook-Air-3.local>
11 lines
464 B
TypeScript
11 lines
464 B
TypeScript
import { describe, it } from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { getModelsDevTierFitness } from "../../open-sse/services/autoCombo/taskFitness.ts";
|
|
|
|
describe("taskFitness - missing model_capabilities table (#8603)", () => {
|
|
it("returns null safely when model_capabilities table does not exist in DB", () => {
|
|
const result = getModelsDevTierFitness("claude-sonnet-3-5-20241022", "coding");
|
|
assert.equal(result, null);
|
|
});
|
|
});
|