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

Error: The following AI output couldn't be converted to a JSON: #11

Open
2 tasks done
leozvc opened this issue Apr 21, 2023 · 2 comments
Open
2 tasks done

Error: The following AI output couldn't be converted to a JSON: #11

leozvc opened this issue Apr 21, 2023 · 2 comments

Comments

@leozvc
Copy link

leozvc commented Apr 21, 2023

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

No response

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here
@bugcj
Copy link

bugcj commented Apr 22, 2023

Error: The following AI output couldn't be converted to a JSON:

@g1331
Copy link
Contributor

g1331 commented Apr 23, 2023

造成该BUG的原因:

  • triggering_prompt和system_prompt语言冲突
  • 由于triggering_promp的汉化造成gpt生成回复未按照system_prompt中的格式回复而导致无法自动修复/提取json格式。

推荐修复:

  1. 将system_prompt和一些role的prompt完全汉化(感觉不太划算,因为英文开销更小且返回结果更准确,,推荐第二个)
  2. 将triggering_prompt还原为
triggering_prompt = (
    "Determine which next command to use, and respond using the"
    " format specified above:"
)

不好的地方就在于全英文的prompt会造成写入文件等信息都是英文的XD

个人测试下来使用中文会导致生成结果结构未按照system prompt预期结构生成

使用英文的prompt会更准确,运行的出错率会更低

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants