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]:这里的日志打印,当ai生成的文本格式出现问题的时候,logger.chat就会报错 #262

Closed
haike-1213 opened this issue May 28, 2024 · 1 comment · Fixed by #266
Labels
bug Something isn't working work in progress Work in progress

Comments

@haike-1213
Copy link

Record was: {'elapsed': datetime.timedelta(seconds=29, microseconds=377555), 'exception': None, 'extra': {}, 'file': (name='logging_utils.py', path='D:\fm\work\agentscope\src\agentscope\utils\logging_utils.py'), 'function': '_chat', 'level': (name='CHAT_LOG', no=21, icon=' '), 'line': 117, 'message': 'assistant: Indeed, I am familiar with Markdown, which is a popular lightweight markup language that is often used to format text on platforms such as GitHub, Reddit, Stack Overflow, and many others. It allows users to write content in a plain-text format that can be easily converted to HTML or other formats.\n\nMarkdown syntax includes elements such as:\n\n- # for headings\n- ** or __ for bold text\n- * or _ for italic text\n- - or * for unordered lists\n- 1., 2., etc., for ordered lists\n- [text](URL) for links\n- ![alt text](image URL) for images\n- > for blockquotes\n\nThe sequence </n> is indeed incorrect for Markdown. To create a line break in Markdown, you can either add two spaces at the end of a line or end the line with a backslash \\\\:\n\n\\nThis is a line with a \\nline break.\\n\\nThis is another way to \\ncreate a line break.\\n\n\nOr using the backslash:\n\n\\nThis is a line with a\\\\ \\nline break.\\n\\nThis is another way to\\\\ \\ncreate a line break.\\n\n\nBoth examples will result in the text being displayed with a line break when converted to HTML or rendered in a Markdown viewer.', 'module': 'logging_utils', 'name': 'agentscope.utils.logging_utils', 'process': (id=36568, name='MainProcess'), 'thread': (id=28044, name='MainThread'), 'time': datetime(2024, 5, 28, 10, 5, 20, 389558, tzinfo=datetime.timezone(datetime.timedelta(seconds=28800), '中国标准时间'))}

raise ValueError('Closing tag "%s" has no corresponding opening tag' % markup)
ValueError: Closing tag "" has no corresponding opening tag

@haike-1213 haike-1213 added the bug Something isn't working label May 28, 2024
@DavdGao DavdGao linked a pull request May 28, 2024 that will close this issue
4 tasks
@DavdGao DavdGao added the work in progress Work in progress label May 28, 2024
@DavdGao DavdGao closed this as completed May 28, 2024
@DavdGao DavdGao reopened this May 28, 2024
@DavdGao
Copy link
Collaborator

DavdGao commented May 28, 2024

Thanks for your report, will be fixed together with #227

@DavdGao DavdGao linked a pull request May 29, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working work in progress Work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants