Skip to content

怀疑/anthropic接口不兼容Anthropic API格式的output_config #17

@cwt9562

Description

@cwt9562

Anthropic API格式官方说明
https://platform.claude.com/docs/en/api/messages/create#create.output_config

我用cch配置,发现会出现503
抓包发现,请求里有output_config参数时,接口就会返回报错

"output_config": {
"format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string"
}
},
"required": [
"title"
],
"additionalProperties": false
}
}

接口返回
{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "invalid params"
}
}

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