lobehub/lobe-chat

Gemini输出的文案格式没有被正确识别[Bug] #1835

coulsontl posted onGitHub

💻 系统环境

Ubuntu

📦 部署环境

Docker

🌐 浏览器

Chrome

🐛 问题描述

如题,Gemini输出的文案格式没有被正确识别,后端用的是OneApi部署的中转。现在显示的样式如下,都是*号: <img width="525" alt="image" src="https://github.com/lobehub/lobe-chat/assets/149155411/d12188b2-b5c9-424d-8108-8d147af4bd8f">

🚦 期望结果

No response

📷 复现步骤

No response

📝 补充信息

No response


👀 @coulsontl

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

posted by lobehubbot 12 months ago

这是 gemini 输出的文本没有符合标准的 markdown 规范吧? ** ** 代表的强调语法,是需要前后有空格的。

posted by arvinxx 12 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is this because the text output by gemini does not comply with the standard markdown specification? The emphasis syntax represented by ** ** requires spaces before and after.

posted by lobehubbot 12 months ago

这是 gemini 输出的文本没有符合标准的 markdown 规范吧? ** ** 代表的强调语法,是需要前后有空格的。

大佬能否兼容一下,不然Gemini渠道用着太别扭了

posted by coulsontl 12 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is this because the text output by gemini does not comply with the standard markdown specification? The emphasis syntax represented by ** ** requires spaces before and after.

Can you please make it compatible? Otherwise, it will be too awkward to use the Gemini channel.

posted by lobehubbot 12 months ago

这是 gemini 输出的文本没有符合标准的 markdown 规范吧? ** ** 代表的强调语法,是需要前后有空格的。

大佬能否兼容一下,不然Gemini渠道用着太别扭了

你在 prompt 里面加上字体加粗的 Markdown必须符合标准格式就好了,否则他输出的不是Markdown 规范谁也没办法兼容……

posted by MapleEve 12 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is this because the text output by gemini does not comply with the standard markdown specification? The emphasis syntax represented by ** ** requires spaces before and after.

Can you please make it compatible, otherwise it will be too awkward to use the Gemini channel?

If you add bold fonts in the prompt, Markdown must comply with the standard format, otherwise the output will not be compatible with the Markdown specification...

posted by lobehubbot 12 months ago

✅ @coulsontl

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

posted by lobehubbot 12 months ago

Fund this Issue

$0.00
Funded

Pull requests