fix: apply lint fixes

This commit is contained in:
Peter Steinberger
2026-01-13 03:36:32 +00:00
parent df6634727e
commit 66ad8a9289
7 changed files with 20 additions and 15 deletions

View File

@@ -5,9 +5,9 @@ import {
} from "./auth-profiles.js";
import { resolveEnvApiKey } from "./model-auth.js";
import {
buildSyntheticModelDefinition,
SYNTHETIC_BASE_URL,
SYNTHETIC_MODEL_CATALOG,
buildSyntheticModelDefinition,
} from "./synthetic-models.js";
type ModelsConfig = NonNullable<ClawdbotConfig["models"]>;

View File

@@ -483,7 +483,9 @@ describe("models config", () => {
"https://api.synthetic.new/anthropic",
);
expect(parsed.providers.synthetic?.apiKey).toBe("SYNTHETIC_API_KEY");
const ids = parsed.providers.synthetic?.models?.map((model) => model.id);
const ids = parsed.providers.synthetic?.models?.map(
(model) => model.id,
);
expect(ids).toContain("hf:MiniMaxAI/MiniMax-M2.1");
} finally {
if (prevKey === undefined) delete process.env.SYNTHETIC_API_KEY;

View File

@@ -350,8 +350,7 @@ describeLive("live models (profile keys)", () => {
}
if (
ok.text.length === 0 &&
(model.provider === "openrouter" ||
model.provider === "opencode")
(model.provider === "openrouter" || model.provider === "opencode")
) {
skipped.push({
model: id,
@@ -375,7 +374,10 @@ describeLive("live models (profile keys)", () => {
);
continue;
}
if (model.provider === "anthropic" && isAnthropicBillingError(message)) {
if (
model.provider === "anthropic" &&
isAnthropicBillingError(message)
) {
if (attempt + 1 < attemptMax) {
logProgress(
`${progressLabel}: billing issue, retrying with next key`,