@ganziliang/kb-model-setup 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/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -95,8 +95,9 @@ export function createModelSetupExtension() {
|
|
|
95
95
|
const apiId = parseApiId(apiIdInput);
|
|
96
96
|
await prompter.notice("正在查询账户和可用模型……");
|
|
97
97
|
const models = await fetchAvailableModels(apiId);
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
const preferredOpenAI = models.openai.find((model) => model.id.toLowerCase() === "gpt-5.6-luna") ?? models.openai[0];
|
|
99
|
+
const selected = preferredOpenAI
|
|
100
|
+
? { provider: "company-gpt", api: "openai-responses", model: preferredOpenAI.id, baseURL: `${gatewayHost}/openai` }
|
|
100
101
|
: models.anthropic[0]
|
|
101
102
|
? { provider: "company-anthropic", api: "anthropic-messages", model: models.anthropic[0].id, baseURL: `${gatewayHost}/api` }
|
|
102
103
|
: undefined;
|