Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-opus-4.6-vertex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

Fix Opus 4.6 via Vertex AI 404 error by removing @vertex suffix from model ID
5 changes: 4 additions & 1 deletion src/api/providers/anthropic-vertex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,11 @@ export class AnthropicVertexHandler extends BaseProvider implements SingleComple
// reasoning model and that reasoning is required to be enabled.
// The actual model ID honored by Anthropic's API does not have this
// suffix.
// The `@vertex` suffix is used to distinguish Vertex AI models but should
// be removed before sending to the API.
let cleanId = id.replace(/@vertex$/, "").replace(/:thinking$/, "")
return {
id: id.endsWith(":thinking") ? id.replace(":thinking", "") : id,
id: cleanId,
info,
betas: betas.length > 0 ? betas : undefined,
...params,
Expand Down
Loading