Skip to content

use kimi2.5 api in claude code #27

@xiaozimu-code

Description

@xiaozimu-code

When I use ANTHROPIC_BASE_URL=https://api.moonshot.cn/anthropic and ANTHROPIC_MODEL=kimi-k2.5 to call Kimi 2.5 in Claude Code, I encounter the following error.
Does this indicate that Kimi's Anthropic-compatible interface does not support the document parameter? I did not find relevant information at https://platform.moonshot.cn/docs/overview.

error message:
API Error: 400 {"error":{"type":"invalid_request_error","message":"messages.8.content.4: Input tag 'document' found using 'type' does not match any of the expected tags: 'image', 'server_tool_use', 'text', 'thinking', 'tool_result', 'tool_use', 'web_search_tool_result'"},"request_id":"07b127d8-1e27-11f1-88f4-221de854e451","type":"error"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions