ai的回复没有md格式,是要怎么设置吗 #8793
-
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
这算是大模型的问题,可以在提示词或助手设置中添加诸如“代码请用代码块格式输出”等引导大模型输出格式。 |
Beta Was this translation helpful? Give feedback.
-
|
https://cookbook.openai.com/examples/gpt-5/gpt-5_prompting_guide#markdown-formatting By default, GPT-5 in the API does not format its final answers in Markdown, in order to preserve maximum compatibility with developers whose applications may not support Markdown rendering. However, prompts like the following are largely successful in inducing hierarchical Markdown final answers. Occasionally, adherence to Markdown instructions specified in the system prompt can degrade over the course of a long conversation. In the event that you experience this, we’ve seen consistent adherence from appending a Markdown instruction every 3-5 user messages. |
Beta Was this translation helpful? Give feedback.


这算是大模型的问题,可以在提示词或助手设置中添加诸如“代码请用代码块格式输出”等引导大模型输出格式。