sfdx-hardis
Version:
Swiss-army-knife Toolbox for Salesforce. Allows you to define a complete CD/CD Pipeline. Orchestrate base commands and assist users with interactive wizards
18 lines • 649 B
JavaScript
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