Skip to content

Commit f65a52b

Browse files
committed
fix(types): break circular import in ZAI types; inline ZaiApiLine literal for zaiApiLineConfigs
1 parent 7aa4e2d commit f65a52b

File tree

1 file changed

+6
-7
lines changed
  • packages/types/src/providers

1 file changed

+6
-7
lines changed

packages/types/src/providers/zai.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ModelInfo } from "../model.js"
2-
import { ZaiApiLine } from "../provider-settings.js"
32

43
// Z AI
54
// https://docs.z.ai/guides/llm/glm-4.5
@@ -243,15 +242,15 @@ export const mainlandZAiModels = {
243242

244243
export const ZAI_DEFAULT_TEMPERATURE = 0
245244

245+
type ZaiApiLineLiteral = "international_coding" | "international" | "china_coding" | "china"
246+
246247
export const zaiApiLineConfigs = {
247248
international_coding: {
248249
name: "International Coding Plan",
249250
baseUrl: "https://api.z.ai/api/coding/paas/v4",
250251
isChina: false,
251252
},
252-
china_coding: {
253-
name: "China Coding Plan",
254-
baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
255-
isChina: true,
256-
},
257-
} satisfies Record<ZaiApiLine, { name: string; baseUrl: string; isChina: boolean }>
253+
international: { name: "International Standard", baseUrl: "https://api.z.ai/api/paas/v4", isChina: false },
254+
china_coding: { name: "China Coding Plan", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", isChina: true },
255+
china: { name: "China Standard", baseUrl: "https://open.bigmodel.cn/api/paas/v4", isChina: true },
256+
} satisfies Record<ZaiApiLineLiteral, { name: string; baseUrl: string; isChina: boolean }>

0 commit comments

Comments
 (0)