import { ChatOllama } from "@langchain/ollama";
import { AbstractLLMProvider } from "./langChainBaseProvider.js";
export class LangChainOllamaProvider extends AbstractLLMProvider {
    constructor(modelName, config) {
        super(modelName, config);
        this.model = this.getModel();
    }
    getModel() {
        const config = {
            model: this.modelName,
            baseUrl: this.config.baseUrl || "http://localhost:11434",
            temperature: this.config.temperature,
            maxRetries: this.config.maxRetries
        };
        return new ChatOllama(config);
    }
}
//# sourceMappingURL=langChainOllamaProvider.js.map