/** * ResponsesToChatProxy — Responses → Chat Completions 转换代理 * * 将 Responses API 格式的请求转换为 Chat Completions 格式, * 发送到上游 /chat/completions 端点,再将响应转换回 Responses 格式。 */ import BaseProxy from './common/BaseProxy'; import type { ResponsesProxyInput, SSECallbacks } from './common/types'; export default class ResponsesToChatProxy extends BaseProxy> { private callbacks?; setCallbacks(callbacks: SSECallbacks): this; protected validate(input: ResponsesProxyInput): void; protected optimizeInput(input: ResponsesProxyInput): ResponsesProxyInput; protected transformRequest(input: ResponsesProxyInput): Record; protected buildEndpoint(input: ResponsesProxyInput): string; protected proxy(input: ResponsesProxyInput, body: Record, endpoint: string): Promise; execute(input: ResponsesProxyInput, callbacks?: SSECallbacks): Promise; } //# sourceMappingURL=ResponsesToChatProxy.d.ts.map