UNPKG

@n1k1t/unit-generator

Version:

Coverage based unit tests AI generator

29 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LlmMistralProvider = void 0; const mistral_1 = require("@ai-sdk/mistral"); const model_1 = require("./model"); class LlmMistralProvider extends model_1.LlmProvider { constructor() { super(...arguments); this.name = 'mistral'; this.tag = (0, mistral_1.createMistral)({ apiKey: this.connection.key, baseURL: this.connection.url, })(this.model); } clone() { const clone = new LlmMistralProvider(this.model, { temperature: this.temperature, connection: this.connection, options: Object.assign({}, this.options), tools: Object.assign({}, this.tools), }); return clone; } static build(model, parameters) { return new LlmMistralProvider(model, { ...parameters, options: parameters.options ?? {} }); } } exports.LlmMistralProvider = LlmMistralProvider; //# sourceMappingURL=mistral.js.map