Vercel News
GLM 5.2 is 35% off via Novita on AI Gateway
6.4内容质量
TL;DR · AI 摘要
GLM 5.2 is 35% off via Novita on AI Gateway - Vercel GLM 5.2 is 35% off on AI Gateway through July 24 when routed throug...
核心要点
- 主题聚焦:GLM 5.2 is 35% off via Novita on AI Gateway
- 来源:Vercel News,建议结合原文判断细节。
- AI 分析暂不可用,本条为保底评分与摘要。
#AI#后端#安全
打开原文GLM 5.2 is 35% off via Novita on AI Gateway - Vercel
GLM 5.2 is 35% off on AI Gateway through July 24 when routed through Novita.
To get the discounted rate, set the model to zai/glm-5.2 in the AI SDK and route requests through Novita:
agent.ts
code
1
import
{
streamText
}
from
'ai'
;
2
const
result
=
streamText
(
{
3
model
:
'zai/glm-5.2'
,
4
prompt
:
'Migrate every API route to the new auth middleware and open a PR.'
,
5
providerOptions
:
{
6
gateway
:
{
7
order
:
[
'novita'
]
,
8
}
,
9
}
,
10
}
)
;Routing GLM 5.2 requests to Novita with the gateway provider options
After July 24, the model stays available at standard provider rates with no markup.
Try GLM 5.2 in the model playground .