Skip to content

Commit

Permalink
Modificacion llm service para su correcto funcionamiento
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgutierrezg committed Feb 18, 2025
1 parent 7ed295d commit bf51ce1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions llmservice/llm-service.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

const axios = require('axios');
const express = require('express');

Expand All @@ -17,9 +18,9 @@ const llmConfigs = {
transformResponse: (response) => response.data.candidates[0]?.content?.parts[0]?.text
},
empathy: {
url: () => 'https://empathyai.staging.empathy.co/v1/chat/completions',
url: () => 'https://empathyai.prod.empathy.co/v1/chat/completions',
transformRequest: (question) => ({
model: "qwen/Qwen2.5-Coder-7B-Instruct",
model: "mistralai/Mistral-7B-Instruct-v0.3",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: question }
Expand Down Expand Up @@ -87,5 +88,3 @@ const server = app.listen(port, () => {
});

module.exports = server


0 comments on commit bf51ce1

Please sign in to comment.