@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
17 lines • 636 B
TypeScript
/**
* API client for models.dev
* Fetches and caches model metadata
*/
export declare function setSessionContextLimit(limit: number | null): void;
export declare function getSessionContextLimit(): number | null;
export declare function resetSessionContextLimit(): void;
/**
* Get context limit for a model
* Resolution order:
* 1. Session override (from /context-max command)
* 2. NANOCODER_CONTEXT_LIMIT env variable
* 3. models.dev lookup / hardcoded Ollama defaults
* 4. null (unknown)
*/
export declare function getModelContextLimit(modelId: string): Promise<number | null>;
//# sourceMappingURL=models-dev-client.d.ts.map