Compare commits

...
Author SHA1 Message Date
Tony Loehr d174c5e92e Merge branch 'main' into add-glm-5.1-model 2026-04-06 17:24:42 +00:00
Tony Loehrandgreptile-apps[bot] 8e259c5991 Apply suggestions from code review
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-03-29 23:15:53 -07:00
Tony Loehr 65aa43886f feat: add GLM 5.1 model to Z AI international provider 2026-03-29 22:41:50 -07:00
+12 -1
View File
@@ -4434,8 +4434,19 @@ export const basetenDefaultModelId = "zai-org/GLM-4.6" satisfies BasetenModelId
// https://docs.z.ai/guides/llm/glm-5
// https://docs.z.ai/guides/overview/pricing
export type internationalZAiModelId = keyof typeof internationalZAiModels
export const internationalZAiDefaultModelId: internationalZAiModelId = "glm-5"
export const internationalZAiDefaultModelId: internationalZAiModelId = "glm-5.1"
export const internationalZAiModels = {
"glm-5.1": {
maxTokens: 131_072,
contextWindow: 204_800,
supportsImages: false,
supportsPromptCache: true,
supportsReasoning: true,
inputPrice: 0,
outputPrice: 0,
cacheReadsPrice: 0,
cacheWritesPrice: 0,
},
"glm-5": {
maxTokens: 128_000,
contextWindow: 200_000,