mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
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)