import { Journal } from "./journal.js"; import { ChatCompletionRequest, Fixture, HandlerDefaults } from "./types.js"; import * as http$1 from "node:http"; //#region src/ollama.d.ts interface OllamaMessage { role: "system" | "user" | "assistant" | "tool"; content: string; tool_calls?: Array<{ function: { name: string; arguments: unknown; }; }>; images?: string[]; } interface OllamaToolDef { type: string; function: { name: string; description?: string; parameters?: object; }; } interface OllamaRequest { model: string; messages: OllamaMessage[]; stream?: boolean; options?: { temperature?: number; num_predict?: number; }; tools?: OllamaToolDef[]; } declare function ollamaToCompletionRequest(req: OllamaRequest): ChatCompletionRequest; declare function handleOllama(req: http$1.IncomingMessage, res: http$1.ServerResponse, raw: string, fixtures: Fixture[], journal: Journal, defaults: HandlerDefaults, setCorsHeaders: (res: http$1.ServerResponse) => void): Promise; declare function handleOllamaGenerate(req: http$1.IncomingMessage, res: http$1.ServerResponse, raw: string, fixtures: Fixture[], journal: Journal, defaults: HandlerDefaults, setCorsHeaders: (res: http$1.ServerResponse) => void): Promise; //#endregion export { handleOllama, handleOllamaGenerate, ollamaToCompletionRequest }; //# sourceMappingURL=ollama.d.ts.map