Open-AutoGLM icon indicating copy to clipboard operation
Open-AutoGLM copied to clipboard

数据清洗有格式问题

Open Ling0727-ai opened this issue 11 months ago • 1 comments

System Info / 系統信息

前天的版本更新后输出总会多类的标签,我估计是代码采用的[:-n}而不是replace导致数据格式变化后,截断收到影响。 甚至说运行前必须把handler.py中361行加上 response = response.replace('', '')才能正常运行 { "_metadata": "do", "action": "Type", "text": "文件传输助手")</answe" }

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • [x] The official example scripts / 官方的示例脚本
  • [ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

git clone 运行

Expected behavior / 期待表现

将索引切割改为replace

Ling0727-ai avatar Dec 21 '25 03:12 Ling0727-ai

我也一样,增加了判断
# Remove tag if present (cleanup step) if "" in response: response = response.replace("", "").strip()

    # Also remove <answer> tag if present
    if "<answer>" in response:
        response = response.replace("<answer>", "").strip()
    之后也没初心了

YANG18996062042 avatar Jun 10 '26 03:06 YANG18996062042