import { type ApiKey, type ProviderConfig } from '../../config.js'; import { DetailLogger } from '../../detail-logger.js'; export interface UpstreamRequest { url: string; headers: Record; body: any; proxy?: string; } /** * Build the upstream URL, headers, and body for a chat completions request. * * For OpenAI providers: passes through the body with `stream_options` added when stream=true. * For Anthropic providers: converts the body via convertOpenAIRequestToAnthropic. */ export declare function buildUpstreamRequest(provider: ProviderConfig, body: any, stream: boolean, apiKeys?: ApiKey[]): Promise; /** * Make the fetch call to the upstream provider and return the Response. */ export declare function sendUpstreamRequest(upstream: UpstreamRequest, detailLogger: DetailLogger, requestId: string, timeoutMs: number): Promise; //# sourceMappingURL=upstream-request.d.ts.map