Skip to content

[Question]: 调用Openai 回答异常 #6830

Closed

Description

@The-South-Girl

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

the response always contains strs like "##1$$", no others;

Image Image

Activity

  1. added
    🙋‍♀️ question
    on Apr 6, 2025
  2. dosubot commented on Apr 6, 2025

    @dosubot

    你好 @The-South-Girl!我是一个可以帮助你解决bug、回答问题并成为贡献者的机器人。虽然你在等待人类维护者的回复,我会尽力帮助你!

    The issue you're experiencing with garbled characters like "##1$$" in the response might be related to how the RAGFlow codebase handles the cleaning and formatting of API responses. The RAGFlow codebase includes a function called clean_str that is used to sanitize input strings by removing unwanted characters, including control characters and HTML escapes [1].

    To address this issue, you can ensure that the clean_str function is being applied to the responses you receive from the OpenAI API. This function should help in removing any unwanted characters that might be causing the garbled output. If the issue persists, you might want to check if there are any specific configurations or parameters affecting the response format, such as those related to the prompt or similarity thresholds [2][3].

    To continue talking to Dosu, mention @dosu.


    Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🙋‍♀️ question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions