@dondetir/ccmux 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -216,6 +216,8 @@ app.get("/v1/models", async (c) => {
|
|
|
216
216
|
if (!ollamaOnly) throw e;
|
|
217
217
|
data = { data: [] };
|
|
218
218
|
}
|
|
219
|
+
// Same filter the official Copilot CLI uses: only models it groups in its picker.
|
|
220
|
+
data.data = (data.data ?? []).filter((m: any) => m.model_picker_category != null);
|
|
219
221
|
// Push Ollama models so the alias loop below includes them in the picker.
|
|
220
222
|
for (const [key, entry] of modelCatalog) {
|
|
221
223
|
if (entry.provider !== "ollama") continue;
|