open-webui/backend/open_webui/utils
ferret99gt fea169a9c0 Core fix for num_predict not working.
1) max_tokens was being looked for in openai_payload, but is present in openai_payload['options'], so is never found.
2) After copying the value for max_tokens to num_predict, delete max_tokens from the dictionary. This is to prevent Ollama throwing a warning about invalid option (max_tokens)
2025-02-19 08:52:34 -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 Core fix for num_predict not working. 2025-02-19 08:52:34 -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