跳到主要内容

aidy.v2.protocol

Messages

message ChatCompletionsProtocolConfig

chat-completions 协议的兼容配置。

message ChatCompletionsProtocolConfig {
// 覆盖转发到上游时使用的请求 path;为空时回退到协议默认值。
string request_path = 1;
// 标记上游是否支持 `max_completion_tokens` 能力。
bool support_max_completion_tokens = 2;
}

message ClaudeMessagesProtocolConfig

claude-messages 协议的兼容配置。

message ClaudeMessagesProtocolConfig {
// 覆盖发往上游的 `anthropic-version` 请求头。
string anthropic_version = 1;
// 覆盖发往上游的一个或多个 `anthropic-beta` 请求头。
repeated string anthropic_beta = 2;
}

message OpenResponsesProtocolConfig

open-responses 协议的兼容配置入口。 当前没有可配置字段,但仍保留独立 message,便于后续扩展。

message OpenResponsesProtocolConfig {
// no fields
}