[GH-ISSUE #2208] Feature: API error response in case of exceeding context length #63302

Open
opened 2026-05-03 12:56:18 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Jurik-001 on GitHub (Jan 26, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2208

It would be good to get a error response back from the API if the prompt exceeds the context length of the model, similar to openai API.

Originally created by @Jurik-001 on GitHub (Jan 26, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2208 It would be good to get a error response back from the API if the prompt exceeds the context length of the model, similar to openai API.
GiteaMirror added the feature requestapi labels 2026-05-03 12:56:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63302