[GH-ISSUE #10508] .py files being truncated for the model #102916

Closed
opened 2026-05-18 00:17:29 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @mariomaz87 on GitHub (Feb 21, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10508

Bug Report


Installation Method

Docker Compose on a Raspberry Pi with RaspberryOS

Environment

  • Open WebUI Version: 0.5.16 (but the same behavior was present also in past versions)

  • Ollama (if applicable): [e.g., v0.2.0, v0.1.32-rc1]

  • Operating System: RaspberryOS

  • Browser (if applicable): Firefox and Safari

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

When I upload a .py I expect the model to analyze the whole file.

Actual Behavior:

I noticed that the bot was answering not having "read" the whole file. If I ask it to send me the first and last lines of the file, the first line is ok but the last line is, in fact, one of the firsts lines and not the last.

Description

Bug Summary:
.py files uploaded to OpenAI\Claude\Mistral are not read entirely by the bot.

Reproduction Details

Steps to Reproduce:
Open a new chat, attach a file and ask a question.

Logs and Screenshots

Browser Console Logs:
I don't find anything relevant.

Docker Container Logs:
I don't find anything relevant.

Screenshots/Screen Recordings (if applicable):
n\a

Originally created by @mariomaz87 on GitHub (Feb 21, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10508 # Bug Report --- ## Installation Method Docker Compose on a Raspberry Pi with RaspberryOS ## Environment - **Open WebUI Version:** 0.5.16 (but the same behavior was present also in past versions) - **Ollama (if applicable):** [e.g., v0.2.0, v0.1.32-rc1] - **Operating System:** RaspberryOS - **Browser (if applicable):** Firefox and Safari **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: When I upload a .py I expect the model to analyze the whole file. ## Actual Behavior: I noticed that the bot was answering not having "read" the whole file. If I ask it to send me the first and last lines of the file, the first line is ok but the last line is, in fact, one of the firsts lines and not the last. ## Description **Bug Summary:** .py files uploaded to OpenAI\Claude\Mistral are not read entirely by the bot. ## Reproduction Details **Steps to Reproduce:** Open a new chat, attach a file and ask a question. ## Logs and Screenshots **Browser Console Logs:** I don't find anything relevant. **Docker Container Logs:** I don't find anything relevant. **Screenshots/Screen Recordings (if applicable):** n\a
Author
Owner

@tjbck commented on GitHub (Feb 21, 2025):

You should use a full context mode for this.

<!-- gh-comment-id:2675198016 --> @tjbck commented on GitHub (Feb 21, 2025): You should use a full context mode for this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#102916