/** * ChatToAnthropicProxy — Chat Completions → Anthropic Messages 转换代理 * * 将 OpenAI Chat Completions 格式的请求转换为 Anthropic Messages API 格式, * 发送到上游 /v1/messages 端点,响应通过标准化回调输出。 */ import BaseProxy from './common/BaseProxy'; import type { ChatCompletionsProxyInput, SSECallbacks } from './common/types'; export default class ChatToAnthropicProxy extends BaseProxy> { private callbacks?; setCallbacks(callbacks: SSECallbacks): this; protected validate(input: ChatCompletionsProxyInput): void; protected optimizeInput(input: ChatCompletionsProxyInput): ChatCompletionsProxyInput; protected transformRequest(input: ChatCompletionsProxyInput): Record; protected buildEndpoint(_input: ChatCompletionsProxyInput): string; protected proxy(input: ChatCompletionsProxyInput, body: Record, endpoint: string): Promise; /** * Anthropic SSE 流解析 — 将上游 Anthropic SSE 事件通过 callbacks 输出 */ private parseAnthropicStream; execute(input: ChatCompletionsProxyInput, callbacks?: SSECallbacks): Promise; } //# sourceMappingURL=ChatToAnthropicProxy.d.ts.map