Skip to content

Commit 47cd96e

Browse files
committed
Minor changes to the run_llm example
1 parent fd7b158 commit 47cd96e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

shuffle-ai/1.0.0/api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ actions:
1818
- name: run_llm
1919
description: "Runs a local LLM, with a GPU or CPU (slow). Default model is set up in Dockerfile"
2020
parameters:
21-
- name: question
21+
- name: input
2222
description: "The input question to the model"
2323
required: true
2424
multiline: true

shuffle-ai/1.0.0/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, redis, logger, console_logger=None):
7878

7979
#def run_llm(self, question, model="llama3.2"):
8080
#def run_llm(self, question, model="deepseek-v3"):
81-
def run_llm(self, question, system_message=""):
81+
def run_llm(self, input, system_message=""):
8282
global llm
8383
global model
8484

@@ -97,7 +97,7 @@ def run_llm(self, question, system_message=""):
9797
},
9898
{
9999
"role": "user",
100-
"content": question,
100+
"content": input,
101101
}
102102
]
103103
)

shuffle-ai/1.0.0/upload.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
gcloud run deploy shuffle-ai-1-0-0 \
33
--region=europe-west2 \
44
--max-instances=5 \
5+
--memory=2Gi \
56
--set-env-vars=SHUFFLE_APP_EXPOSED_PORT=8080,SHUFFLE_SWARM_CONFIG=run,SHUFFLE_LOGS_DISABLED=true,SHUFFLE_APP_SDK_TIMEOUT=120 --source=./ \
67
--timeout=120s

0 commit comments

Comments
 (0)