Skip to content

[Bug]: Antigravity更新了Claude 可用模型,可否烦请大佬同步一下 #421

Description

@sz30

提交前确认

  • 我已经搜索过现有的 issues,确认这不是重复问题
  • 我已经阅读过项目文档

是否是最新版

是,使用最新版

调用的是哪个渠道

antigravity

调用的是哪个模型

claude-sonnet-5-5-medium

调用的是哪个格式

openai 格式

具体报错内容

root@xx:~# curl -s \
  -H "Authorization: Bearer xx" \
  http://127.0.0.1:7861/antigravity/v1/models \
| grep -oE '"id":"claude-(sonnet|opus)-5-5-(low|medium|high)"' \
| cut -d'"' -f4
claude-opus-5-5-low
claude-sonnet-5-5-high
claude-sonnet-5-5-medium
claude-opus-5-5-high
claude-sonnet-5-5-low
claude-opus-5-5-medium
root@xx:~# curl -s \
  -X POST \
  http://127.0.0.1:7861/antigravity/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer xx" \
  -d '{
    "model": "claude-sonnet-5-5-medium",
    "messages": [
      {
        "role": "user",
        "content": "Reply with OK"
      }
    ],
    "stream": false
  }'
{"id":"6873eff5-e1f1-xxxx-xxxx-4fd03ce45bda","object":"chat.completion","created":1790000000,"model":"claude-sonnet-5-5-medium","choices":[{"index":0,"message":{"role":"assistant","content":"Claude Sonnet 4.6 is no longer available. Please switch to Claude Sonnet 5.5."},"finish_reason":"stop"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

错误描述

Antigravity 更新了 Claude 系列的models,现在可用下列:

  • claude-sonnet-5-5-low
  • claude-sonnet-5-5-medium
  • claude-sonnet-5-5-high
  • claude-opus-5-5-low
  • claude-opus-5-5-medium
  • claude-opus-5-5-high

但当我调用 claude-opus-5-5-medium 时出错,提示信息:

Claude Sonnet 4.6 is no longer available.
Please switch to Claude Sonnet 5.5.

看来 request normalization 可能还是把 Sonnet/Opus 模型映射为 Claude 4.6
可否烦请大佬同步更新一下

补充信息(可选)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions