mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 12:24:39 +00:00
feat(provider): refresh models per AI provider
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
diff --git a/dist/core/remote-catalog-provider.js b/dist/core/remote-catalog-provider.js
|
||||
index debdf90cb230159dc3ad344fb5ebd0af3dbd91e1..9466f1d1a5b9475e18eb8c6376b11cc4a87fff24 100644
|
||||
--- a/dist/core/remote-catalog-provider.js
|
||||
+++ b/dist/core/remote-catalog-provider.js
|
||||
@@ -1,5 +1,5 @@
|
||||
-import { getModelType, isModelType, } from "@earendil-works/pi-ai";
|
||||
-import { VERSION } from "../config.js";
|
||||
+// Embedded builds cannot locate the coding-agent package.json at runtime.
|
||||
+import { getModelType, isModelType, PI_AI_VERSION as VERSION } from "@earendil-works/pi-ai";
|
||||
import { fetchWithRetry } from "../utils/management-http.js";
|
||||
import { getPiUserAgent } from "../utils/pi-user-agent.js";
|
||||
const DEFAULT_CATALOG_BASE_URL = "https://pi.dev";
|
||||
Reference in New Issue
Block a user