/** * Provider/model-family-aware context-window fallback. * * Used only when neither the live catalog (models.dev) nor the provider API * reports a context window for a model, e.g. a model newer than the models.dev * snapshot (the "brand-new gpt-5.5" case). A single flat default badly mis-sizes * the window and drives auto-compaction to fire far too early (small default) or * too late (large default, risking a provider "context length exceeded" error). * Infer a sane family default from the provider and model id instead. * * The real window always wins whenever the catalog / OpenRouter / provider_api * supplies one; this is the last line of defense, not a primary source. */ /** Last-resort default when neither provider nor model id is recognised. */ export declare const FALLBACK_CONTEXT_WINDOW = 128000; /** * Best-effort context window (in tokens) inferred from provider + model id. * * Over-estimating is the dangerous direction (it risks context-overflow errors), * so only known-large families get a large window; older/unknown families stay at * the conservative {@link FALLBACK_CONTEXT_WINDOW}. */ export declare function inferFallbackContextWindow(provider: string, modelId?: string): number; //# sourceMappingURL=context-window-fallback.d.ts.map