Skip to content

Commit

Permalink
Changed base model to a smaller model
Browse files Browse the repository at this point in the history
  • Loading branch information
aalonsolopez committed Dec 19, 2024
1 parent 4c73bb8 commit 32ab52c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kubernetes/base/002-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: summary-lens-service
image: gravitate-registry.cr.de-fra.ionos.com/summary-lens-service:v0.11.0
image: gravitate-registry.cr.de-fra.ionos.com/summary-lens-service:v0.12.0
imagePullPolicy: Always
env:
- name: SERVER_URL
Expand Down
8 changes: 6 additions & 2 deletions lens_app/core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from datetime import datetime

from click import option
from fhirpathpy import evaluate
from dotenv import load_dotenv
import os
Expand Down Expand Up @@ -397,12 +399,14 @@ def summarize2(
prompt_message = prompt

result = client.chat(
model="llama3.1",
model="llama3.2:3b",
messages=[
{"content": systemMessage, "role": "system"},
{"content": prompt_message, "role": "assistant"},
],
stream=False
stream=False,
keep_alive="-1m",
options={"seed": 1234, "temperature": 0}
)

response = format_response(result["message"]["content"])
Expand Down

0 comments on commit 32ab52c

Please sign in to comment.