import type { GatewayProviderContext, GatewayResolvedProviderConfig } from "@cline/shared"; import type { ProviderFactoryResult } from "./types"; /** * OpenAI's chat-completions API rejects `max_tokens` for reasoning-era * models ("Unsupported parameter: 'max_tokens' is not supported with this * model. Use 'max_completion_tokens' instead."). Rename the parameter only * for model ids that require it: OpenAI, Azure OpenAI, and the major * OpenAI-compatible gateways (OpenRouter, LiteLLM) all accept * `max_completion_tokens`, while older third-party servers that only know * `max_tokens` do not serve o-series/gpt-5 model ids — so every other * request keeps its exact current wire format. */ export declare function withMaxCompletionTokensForReasoningModels(body: Record): Record; export declare function createSuccessDataResponseFetch(baseFetch: typeof fetch): typeof fetch; export declare function createOpenAICompatibleProviderModule(config: GatewayResolvedProviderConfig, context: GatewayProviderContext): Promise; //# sourceMappingURL=openai-compatible.d.ts.map