[GH-ISSUE #12864] issue: Python syntax is being interpreted wrong. #32266

Closed
opened 2026-04-25 06:09:27 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @updawg on GitHub (Apr 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12864

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.5

Ollama Version (if applicable)

v0.6.5

Operating System

Windows 11

Browser (if applicable)

Edge

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using 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 listed steps to reproduce the bug in detail.

Expected Behavior

When I send def __init__(self, text, parent=None, accent=False): in the chat window it should interpret it as such and not as def **init**(self, text, parent=None, accent=False):

Actual Behavior

I sent Python code to Chat GPT 4.1 and __init__ keeps showing up as **init**. This is causing GPT 4.1 to keep informing me of syntax errors in my code.

Steps to Reproduce

  1. Select GPT 4.1 as the endpoint.
  2. Paste is this valid syntax def __init__(self, text, parent=None, accent=False):
  3. GPT will say no you need to change **init** to __init__

Logs & Screenshots

Image

Additional Information

No response

Originally created by @updawg on GitHub (Apr 14, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12864 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.5 ### Ollama Version (if applicable) v0.6.5 ### Operating System Windows 11 ### Browser (if applicable) Edge ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior When I send def \_\_init\_\_(self, text, parent=None, accent=False): in the chat window it should interpret it as such and not as def \*\*init\*\*(self, text, parent=None, accent=False): ### Actual Behavior I sent Python code to Chat GPT 4.1 and \_\_init\_\_ keeps showing up as \*\*init\*\*. This is causing GPT 4.1 to keep informing me of syntax errors in my code. ### Steps to Reproduce 1. Select GPT 4.1 as the endpoint. 2. Paste is this valid syntax def \_\_init\_\_(self, text, parent=None, accent=False): 3. GPT will say no you need to change \*\*init\*\* to \_\_init\_\_ ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/6720d461-3631-4139-b6d5-ca165caab678) ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 06:09:27 -05:00
Author
Owner

@tjbck commented on GitHub (Apr 14, 2025):

You can disable rich text input from settings > inteface

<!-- gh-comment-id:2802959217 --> @tjbck commented on GitHub (Apr 14, 2025): You can disable rich text input from settings > inteface
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#32266