/** * kosha-discovery — llama.cpp (local) discoverer. * * I target `llama-server`'s OpenAI-compatible `/v1/models` endpoint so * Chitragupta can treat llama.cpp as a first-class local runtime without * inventing a second local discovery protocol. * @module */ import type { CredentialResult, ModelCard } from "../types.js"; import { BaseDiscoverer } from "./base.js"; /** * Discover locally served models from a llama.cpp `llama-server` process. * * The server is local and unauthenticated, so discovery returns an empty list * instead of throwing when the daemon is absent. */ export declare class LlamaCppDiscoverer extends BaseDiscoverer { readonly providerId = "llama.cpp"; readonly providerName = "llama.cpp (Local)"; readonly baseUrl: string; /** * @param baseUrl - Override the default llama.cpp server URL. */ constructor(baseUrl?: string); /** * Query the local OpenAI-compatible `/v1/models` endpoint. */ discover(_credential: CredentialResult, options?: { timeout?: number; }): Promise; /** Convert an OpenAI-compatible model payload into a normalized card. */ private toModelCard; /** Strip path-like prefixes so local file-system details do not leak into IDs. */ private normalizeLocalModelId; /** Infer the model mode from the normalized model ID. */ private inferMode; /** Infer the free-form raw capability list for compatibility surfaces. */ private inferRawCapabilities; /** Build best-effort local runtime metadata from model payload fields. */ private buildRuntimeMetadata; private normalizeComputeTarget; /** Check whether the error represents an unavailable local server. */ private isConnectionError; } //# sourceMappingURL=llama-cpp.d.ts.map