import { i as OpenClawConfig } from "../../types.openclaw-oSBece7v.js"; import { d as SecretInput } from "../../types.secrets-C15Z_eLX.js"; import { m as ModelProviderDeclarationConfig, s as ModelDefinitionConfig } from "../../types.models-Nc1Z-tAz.js"; import { n as RuntimeEnv } from "../../runtime-Bxifh4bY.js"; import { i as WizardPrompter } from "../../prompts-DgKIGa-v.js"; import { x as SecretInputMode } from "../../types-DSZyb4Wo.js"; import { f as resolveOllamaCompatNumCtxEnabled, l as isOllamaCompatProvider, m as wrapOllamaCompatNumCtx, o as createConfiguredOllamaCompatStreamWrapper, p as shouldInjectOllamaCompatNumCtx, r as buildOllamaChatRequest } from "../../stream-DtRpWylO.js"; //#region extensions/ollama/src/defaults.d.ts declare const OLLAMA_DEFAULT_BASE_URL = "http://127.0.0.1:11434"; declare const OLLAMA_DEFAULT_CONTEXT_WINDOW = 128000; declare const OLLAMA_DEFAULT_MAX_TOKENS = 8192; declare const OLLAMA_DEFAULT_COST: { input: number; output: number; cacheRead: number; cacheWrite: number; }; declare const OLLAMA_DEFAULT_MODEL = "gemma4"; //#endregion //#region extensions/ollama/src/provider-models.d.ts type OllamaTagModel = { name: string; modified_at?: string; size?: number; digest?: string; remote_host?: string; details?: { family?: string; parameter_size?: string; }; }; type OllamaTagsResponse = { models?: OllamaTagModel[]; }; type OllamaModelWithContext = OllamaTagModel & { contextWindow?: number; capabilities?: string[]; }; declare function resolveOllamaApiBase(configuredBaseUrl?: string): string; type OllamaModelShowInfo = { contextWindow?: number; capabilities?: string[]; }; declare function queryOllamaModelShowInfo(apiBase: string, modelName: string, opts?: { apiKey?: string; }): Promise; /** @deprecated Use queryOllamaModelShowInfo instead. */ declare function queryOllamaContextWindow(apiBase: string, modelName: string): Promise; declare function enrichOllamaModelsWithContext(apiBase: string, models: OllamaTagModel[], opts?: { concurrency?: number; }): Promise; declare function isReasoningModelHeuristic(modelId: string): boolean; declare function buildOllamaModelDefinition(modelId: string, contextWindow?: number, capabilities?: string[]): ModelDefinitionConfig; declare function fetchOllamaModels(baseUrl: string): Promise<{ reachable: boolean; models: OllamaTagModel[]; }>; declare function buildOllamaProvider(configuredBaseUrl?: string, opts?: { quiet?: boolean; }): Promise; //#endregion //#region extensions/ollama/src/setup.d.ts type OllamaSetupOptions = { customBaseUrl?: string; customModelId?: string; }; type OllamaSetupResult = { config: OpenClawConfig; credential: SecretInput; credentialMode?: SecretInputMode; }; declare function promptAndConfigureOllama(params: { cfg: OpenClawConfig; env?: NodeJS.ProcessEnv; opts?: Record; prompter: WizardPrompter; secretInputMode?: SecretInputMode; allowSecretRefPrompt?: boolean; }): Promise; declare function configureOllamaNonInteractive(params: { nextConfig: OpenClawConfig; opts: OllamaSetupOptions; runtime: RuntimeEnv; agentDir?: string; }): Promise; declare function ensureOllamaModelPulled(params: { config: OpenClawConfig; model: string; prompter: WizardPrompter; }): Promise; //#endregion export { OLLAMA_DEFAULT_BASE_URL, OLLAMA_DEFAULT_CONTEXT_WINDOW, OLLAMA_DEFAULT_COST, OLLAMA_DEFAULT_MAX_TOKENS, OLLAMA_DEFAULT_MODEL, type OllamaModelShowInfo, type OllamaModelWithContext, type OllamaTagModel, type OllamaTagsResponse, buildOllamaChatRequest, buildOllamaModelDefinition, buildOllamaProvider, configureOllamaNonInteractive, createConfiguredOllamaCompatStreamWrapper, enrichOllamaModelsWithContext, ensureOllamaModelPulled, fetchOllamaModels, isOllamaCompatProvider, isReasoningModelHeuristic, promptAndConfigureOllama, queryOllamaContextWindow, queryOllamaModelShowInfo, resolveOllamaApiBase, resolveOllamaCompatNumCtxEnabled, shouldInjectOllamaCompatNumCtx, wrapOllamaCompatNumCtx };