import BaseProxy from "../../common/BaseProxy"; import type { ChatCompletionsProxyInput, SSECallbacks } from "../../common/types"; /** * ChatCompletionsToResponsesProxy — Chat Completions → Responses 转换代理 * * 将 Chat Completions 格式的请求转换为 Responses 格式, * 通过 /chat/completions 端点调用上游,再将响应转换回 Responses 格式。 * * 参考 cc-switch:chat_completion_to_response */ export default class ChatCompletionsToResponsesProxy 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; execute(input: ChatCompletionsProxyInput, callbacks?: SSECallbacks): Promise; } //# sourceMappingURL=index.d.ts.map