返回全部动态
Anthropic TypeScript SDK 发布 vertex-sdk-v1.1.2 修复路径编码
原标题:vertex-sdk-v1.1.2
AI 摘要
Anthropic 发布 TypeScript SDK 的 vertex-sdk-v1.1.2 版本,修复 Vertex 集成中的路径安全问题。该修复对请求路径中的项目 ID、区域和模型名进行百分号编码,防止模型名中的斜杠使请求逃逸出 /publishers/anthropic/models/ 路径,并对空模型名以及项目 ID 或区域为 . 或 .. 的情况抛出 AnthropicError。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
### Bug Fixes * **vertex:** percent-encode the project ID, region and model in the request path, so a `/` in the model can't move the request outside `/publishers/anthropic/models/`, and throw an `AnthropicError` for an empty `model` or a project ID or region of `.` or `..`
发布时间:2026-11-05 04:25
抓取时间:2026-11-05 04:29
来源机构:Anthropic