Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

fix(catalog): use claudish provider names in the cold-start slug seeds

Jack Rudenkod479013ad933
diff --git a/packages/cli/src/providers/model-catalog.test.ts b/packages/cli/src/providers/model-catalog.test.ts
index 0ac2b15f..e8da7ab4 100644
--- a/packages/cli/src/providers/model-catalog.test.ts
+++ b/packages/cli/src/providers/model-catalog.test.ts
@@ -182,6 +182,19 @@ describe("modelsByVendor", () => {
expect(result).toEqual([]);
});
+ test("cold-cache together lookup takes the aggregator path", async () => {
+ const fakeProviderQuery = mock(async () => []);
+ const fakeReadSlim = mock(() => null);
+ const client = createCatalogClient({
+ getModelsByProvider: fakeProviderQuery,
+ readSlimCache: fakeReadSlim,
+ });
+
+ expect(await client.modelsByVendor("together")).toEqual([]);
+ expect(fakeProviderQuery).not.toHaveBeenCalled();
+ expect(fakeReadSlim).toHaveBeenCalled();
+ });
+
test("aggregator slug match is case-insensitive", async () => {
const entries = [slimEntry("claude-opus-4-7", [aggregator("OpenCode-Zen", "x")])];
const client = createCatalogClient({
@@ -193,7 +206,7 @@ describe("modelsByVendor", () => {
expect(result).toHaveLength(1);
});
- test.each([["litellm"], ["ollama"], ["lmstudio"], ["lm-studio"]])(
+ test.each([["litellm"], ["ollama"], ["lmstudio"]])(
"'%s' returns [] without any I/O",
async (slug) => {
const fakeProviderQuery = mock(async () => []);
diff --git a/packages/cli/src/providers/model-catalog.ts b/packages/cli/src/providers/model-catalog.ts
index 8274345f..46e1372b 100644
--- a/packages/cli/src/providers/model-catalog.ts
+++ b/packages/cli/src/providers/model-catalog.ts
@@ -141,13 +141,18 @@ const OWNER_PROVIDER_SLUGS = new Set<string>([
*
* Used only when the slim cache is empty (first run, before the first fetch),
* where an empty set would make `modelsByVendor()` return nothing for everyone.
+ *
+ * Each seed is a claudish provider name, the spelling `modelsByVendor()` is asked
+ * in and the one the derived set holds. `together`, not the catalog's `routeId`
+ * `together-ai`: no caller asks for `together-ai`, so that seed matched nothing
+ * and a cold `modelsByVendor("together")` fell through to the owner query.
*/
const AGGREGATOR_SLUG_SEED = new Set<string>([
"openrouter",
"opencode-zen",
"opencode-zen-go",
"fireworks",
- "together-ai",
+ "together",
]);
/**
@@ -191,8 +196,9 @@ function aggregatorProviderSlugs(
/**
* Local-only / undocumented-catalog vendors. These have no Firebase catalog
* by design; the picker shows a free-text input instead of a model list.
+ * claudish provider names only: LM Studio is `lmstudio`.
*/
-const NO_CATALOG_VENDOR_SLUGS = new Set<string>(["litellm", "ollama", "lmstudio", "lm-studio"]);
+const NO_CATALOG_VENDOR_SLUGS = new Set<string>(["litellm", "ollama", "lmstudio"]);
// ─── Internal helpers ────────────────────────────────────────────────────────