Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 不识别o3代码区域导致显示杂乱 #6243

Open
hspmanbu opened this issue Feb 17, 2025 · 3 comments
Open

[Bug] 不识别o3代码区域导致显示杂乱 #6243

hspmanbu opened this issue Feb 17, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@hspmanbu
Copy link

📦 部署方式

官方安装包

📌 软件版本

2.16.0

💻 系统环境

Ubuntu

📌 系统版本

22.04.5 LTS

🌐 浏览器

Chrome

📌 浏览器版本

118

🐛 问题描述

无法识别以下内容为开头的代码内容(o3-mini)
────────────────────────────
示例代码:
────────────────────────────
#!/usr/bin/env python3

-- coding: utf-8 --

导致不是在代码框中显示代码内容,且错误识别代码区域中的#注释内容为标题,显示效果非常杂乱

📷 复现步骤

正常填写o3-mini的api,生成代码即可100%复现

🚦 期望结果

能够正常、完整的将代码内容显示在代码框中

📝 补充信息

No response

@hspmanbu hspmanbu added the bug Something isn't working label Feb 17, 2025
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Not recognizing the o3 code area causes messy display

📦 Deployment method

Official installation package

📌 Software version

2.16.0

💻 System environment

Ubuntu

📌 System version

22.04.5 LTS

🌐 Browser

Chrome

📌 Browser version

118

🐛 Question description

The following content is not recognized as the code content starting with (o3-mini)
────────────────────────────
Sample code:
────────────────────────────
#!/usr/bin/env python3

-- coding: utf-8 --

As a result, the code content is not displayed in the code box, and the # comment content in the code area is wrongly identified as the title, and the display effect is very messy.

📷 Reproduction steps

Fill in the o3-mini API normally, generate the code and reproduction 100%

🚦 Expected results

Can display the code content in the code box normally and completely

📝 Supplementary information

No response

@Kosette
Copy link
Contributor

Kosette commented Feb 17, 2025

解析用的markdown引擎,让模型以markdown的语法格式化输出

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The markdown engine used for parsing allows the model to format the output in the syntax of markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants