Skip to content

Chat content rendering is abnormal. #43

@Caojiahao-Coder

Description

@Caojiahao-Coder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguseissue when using `anse.app`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions