feat: 添加 Z.AI 编码计划支持及 GLM-4.7 配置
- 添加 Z.AI 编码计划支持,配置 GLM-4.7 模型并设置相应的 API 地址和密钥。
This commit is contained in:
@@ -101,6 +101,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"zai-coding-plan": {
|
||||||
|
"name": "Z.AI Coding Plan",
|
||||||
|
"npm": "@ai-sdk/openai-compatible",
|
||||||
|
"options": {
|
||||||
|
"baseURL": "https://api.z.ai/api/coding/paas/v4",
|
||||||
|
"apiKey": "{env:ZAI_API_KEY}"
|
||||||
|
},
|
||||||
|
"models": {
|
||||||
|
"glm-4.7": {
|
||||||
|
"name": "GLM-4.7",
|
||||||
|
"reasoning": true,
|
||||||
|
"modalities": { "input": ["text"], "output": ["text"] },
|
||||||
|
"limit": { "context": 204800, "output": 131072 }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user