From c726d2370751870cb4ae55a48f63a73c44a41aaf Mon Sep 17 00:00:00 2001 From: Karl Date: Fri, 6 Jun 2025 15:13:03 +0100 Subject: [PATCH] remove any preceeding text on the ollama prompt --- libs/ollama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ollama.py b/libs/ollama.py index 1494c7b..3bdb462 100644 --- a/libs/ollama.py +++ b/libs/ollama.py @@ -67,4 +67,4 @@ def create_prompt_on_openwebui(prompt: str) -> str: # ) # prompt = response["choices"][0]["message"]["content"].strip('"') logging.debug(prompt) - return prompt \ No newline at end of file + return prompt.split(": ")[-1] \ No newline at end of file