/** * HuggingFace Inference API provider. * * Translates between Anthropic's message format (used by the agentic loop) * and the OpenAI-compatible chat completions format that HuggingFace speaks. * * Supports tool calling for models that implement it (Kimi-K2.5, Qwen, etc.). */ import type { LLMProvider, ChatOptions, LLMResponse } from './provider.js'; /** * Get the context window limit for a given model. * Used by the adaptive budget to cap the ceiling. */ export declare function getModelContextLimit(modelId: string): number; /** * Get the max output tokens for a given model. */ export declare function getModelMaxOutput(modelId: string): number; /** * Name the host an error actually came from (task 147). * * This client is a generic OpenAI-format `chat/completions` client; the class * name is historical. Since task 147 it also serves user-registered endpoints * (Vultr, Together, Groq, vLLM, Ollama), so a hardcoded "HuggingFace API error" * would send the reader after the wrong subsystem — the exact mislabel task 118 * recorded, where an OpenAI failure read as an HF failure and the routing was * blamed for a dialect bug. Task 119 deleted that label when it retired the * OpenAI chat branch, which was correct then and is wrong again now. */ export declare function chatProviderLabel(baseUrl: string): string; export declare class HuggingFaceProvider implements LLMProvider { private apiKey; private baseUrl; constructor(apiKey?: string, _modelId?: string, baseUrl?: string); chat(options: ChatOptions): Promise; private _streamChat; } //# sourceMappingURL=huggingface-provider.d.ts.map