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

Chat content rendering is abnormal. #43

Closed
1 task
Caojiahao-Coder opened this issue May 25, 2023 · 1 comment
Closed
1 task

Chat content rendering is abnormal. #43

Caojiahao-Coder opened this issue May 25, 2023 · 1 comment
Labels
bug Something isn't working use issue when using `anse.app`

Comments

@Caojiahao-Coder
Copy link

Caojiahao-Coder commented May 25, 2023

How is Anse deployed?

Docker

Describe the bug

If the question content starts with a code, the conversation message won't render correctly.

Input

image

Output

image

Console Logs

Docker log

2023-05-25 09:54:12 callProviderHandler {
2023-05-25 09:54:12   conversationId: 'temp',
2023-05-25 09:54:12   conversationType: 'chat_single',
2023-05-25 09:54:12   botId: 'temp',
2023-05-25 09:54:12   globalSettings: {
2023-05-25 09:54:12     baseUrl: 'https://api.openai.com',
2023-05-25 09:54:12     model: 'gpt-3.5-turbo-0301',
2023-05-25 09:54:12     maxTokens: 2048,
2023-05-25 09:54:12     temperature: 0.7,
2023-05-25 09:54:12     top_p: 1,
2023-05-25 09:54:12     apiKey: '****'
2023-05-25 09:54:12   },
2023-05-25 09:54:12   botSettings: {},
2023-05-25 09:54:12   prompt: 'Summarize a short and relevant title of input with no more than 5 words.\n' +
2023-05-25 09:54:12     'Rules:\n' +
2023-05-25 09:54:12     '1. Must use the same language as input.\n' +
2023-05-25 09:54:12     '2. Output the title directly, do not add any other content.\n' +
2023-05-25 09:54:12     'The input is:\n' +
2023-05-25 09:54:12     '<div class="h-100%  flex flex-col color-base">\n' +
2023-05-25 09:54:12     '如何解释这行代码',
2023-05-25 09:54:12   messages: []
2023-05-25 09:54:12 }

Participation

  • I am willing to submit a pull request for this issue.
@yzh990918 yzh990918 added the bug Something isn't working label May 25, 2023
@ddiu8081 ddiu8081 added use issue when using `anse.app` and removed deploy labels May 25, 2023
@ddiu8081
Copy link
Member

fixed in 737ed7c

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

No branches or pull requests

3 participants