|
|
@@ -4059,13 +4059,23 @@ export const basetenDefaultModelId = "zai-org/GLM-4.6" satisfies BasetenModelId
|
|
|
// https://docs.z.ai/guides/llm/glm-4.5
|
|
|
// https://docs.z.ai/guides/overview/pricing
|
|
|
export type internationalZAiModelId = keyof typeof internationalZAiModels
|
|
|
-export const internationalZAiDefaultModelId: internationalZAiModelId = "glm-4.5"
|
|
|
+export const internationalZAiDefaultModelId: internationalZAiModelId = "glm-4.7"
|
|
|
export const internationalZAiModels = {
|
|
|
+ "glm-4.7": {
|
|
|
+ maxTokens: 131_000,
|
|
|
+ contextWindow: 200_000,
|
|
|
+ supportsImages: false,
|
|
|
+ supportsPromptCache: true,
|
|
|
+ cacheReadsPrice: 0.11,
|
|
|
+ inputPrice: 0.6,
|
|
|
+ outputPrice: 2.2,
|
|
|
+ },
|
|
|
"glm-4.6": {
|
|
|
maxTokens: 128_000,
|
|
|
contextWindow: 200_000,
|
|
|
supportsImages: false,
|
|
|
supportsPromptCache: true,
|
|
|
+ cacheReadsPrice: 0.11,
|
|
|
inputPrice: 0.6,
|
|
|
outputPrice: 2.2,
|
|
|
},
|
|
|
@@ -4096,13 +4106,23 @@ export const internationalZAiModels = {
|
|
|
} as const satisfies Record<string, ModelInfo>
|
|
|
|
|
|
export type mainlandZAiModelId = keyof typeof mainlandZAiModels
|
|
|
-export const mainlandZAiDefaultModelId: mainlandZAiModelId = "glm-4.5"
|
|
|
+export const mainlandZAiDefaultModelId: mainlandZAiModelId = "glm-4.7"
|
|
|
export const mainlandZAiModels = {
|
|
|
+ "glm-4.7": {
|
|
|
+ maxTokens: 131_000,
|
|
|
+ contextWindow: 200_000,
|
|
|
+ supportsImages: false,
|
|
|
+ supportsPromptCache: true,
|
|
|
+ cacheReadsPrice: 0.11,
|
|
|
+ inputPrice: 0.6,
|
|
|
+ outputPrice: 2.2,
|
|
|
+ },
|
|
|
"glm-4.6": {
|
|
|
maxTokens: 128_000,
|
|
|
contextWindow: 200_000,
|
|
|
supportsImages: false,
|
|
|
supportsPromptCache: true,
|
|
|
+ cacheReadsPrice: 0.11,
|
|
|
inputPrice: 0.6,
|
|
|
outputPrice: 2.2,
|
|
|
},
|