remove any preceeding text on the ollama prompt

This commit is contained in:
Karl 2025-06-06 15:13:03 +01:00
parent 2c9429d640
commit c726d23707

View File

@ -67,4 +67,4 @@ def create_prompt_on_openwebui(prompt: str) -> str:
# )
# prompt = response["choices"][0]["message"]["content"].strip('"')
logging.debug(prompt)
return prompt
return prompt.split(": ")[-1]