1
0
mirror of https://github.com/karl0ss/ai_image_frame_server.git synced 2025-06-20 07:19:12 +01:00

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

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