open-webui/backend/open_webui/utils
ferret99gt 57b01cf8fb Fix for system prompt setting
1) Ollama supports sending the system prompt as a parameter, not as an option. (See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8) However, it is in the options dictionary and needs moved to the payload dictionary.
2) After moving the system parameter from ollama_options to ollama_payload, delete it from ollama_options. This is to prevent Ollama throwing a warning about invalid options.
2025-02-19 08:55:11 -05:00
..
images
access_control.py
auth.py refac 2025-02-17 21:34:06 -08:00
chat.py Merge pull request #10209 from i-infra/iinf/fix-for-openrouter 2025-02-17 15:24:21 -08:00
code_interpreter.py refac: code intepreter 2025-02-10 13:12:05 -08:00
filter.py fix: filter 2025-02-08 01:07:05 -08:00
middleware.py fix: temp chat message continue 2025-02-17 18:40:40 -08:00
misc.py fix 2025-02-13 15:17:41 -08:00
models.py and one last edit 2025-02-15 19:42:58 -05:00
oauth.py refac 2025-02-16 00:11:18 -08:00
payload.py Fix for system prompt setting 2025-02-19 08:55:11 -05:00
pdf_generator.py chore: format 2025-02-09 22:20:47 -08:00
plugin.py
response.py chore: format 2025-02-13 00:13:33 -08:00
security_headers.py
task.py fix exception where openrouter doesn't populate - no longer index without fallback 2025-02-15 19:41:41 -05:00
tools.py
webhook.py refac 2025-02-16 00:11:18 -08:00