mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
issue: Web Search Result Exceed Token Limit #4809
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rebelliouswhiz on GitHub (Apr 11, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.3
Ollama Version (if applicable)
No response
Operating System
Debian 12
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Web search output correctly.
Actual Behavior
400: This model's maximum context length is 65536 tokens. However, you requested 105945 tokens (105945 in the messages, 0 in the completion). Please reduce the length of the messages or completion.
Steps to Reproduce
Set up Google PSE.
Prompt "Who is Steve Jobs"
Model is irrelevant. Exceed anyways.
Logs & Screenshots
Log too large, sending partial log here. Should be easy to reproduce.
Additional Information
Maybe we can limit the token number sent to the model? Or maybe limit the search result token.