fix: apply lint fixes
This commit is contained in:
@@ -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"]>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user