@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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  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 selected = models.openai[0]
99
- ? { provider: "company-gpt", api: "openai-responses", model: models.openai[0].id, baseURL: `${gatewayHost}/openai` }
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganziliang/kb-model-setup",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Interactive model configuration for the kb local knowledge base agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",