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

为啥有时候模型的返回直接就是个[]空数组呢? #426

Open
DAAworld opened this issue Jan 2, 2025 · 4 comments
Open

为啥有时候模型的返回直接就是个[]空数组呢? #426

DAAworld opened this issue Jan 2, 2025 · 4 comments

Comments

@DAAworld
Copy link

DAAworld commented Jan 2, 2025

比如在
for res in bot.run(messages,):
print(res)
有时候,res的结果直接就是[]空数组

@tuhahaha
Copy link
Collaborator

tuhahaha commented Jan 3, 2025

有具体的例子吗?得看下是llm输出为空,还是agent的实现有问题

@DAAworld
Copy link
Author

DAAworld commented Jan 6, 2025

好的,我看一下。

@DAAworld
Copy link
Author

DAAworld commented Jan 8, 2025

有具体的例子吗?得看下是llm输出为空,还是agent的实现有问题

image
ken可能是这个地方的问题。没有找到对应的agent的name,就会返回空列表,然后模型就不返回任何东西了。

@tuhahaha
Copy link
Collaborator

tuhahaha commented Jan 9, 2025

这里是模型认为没有需要发言的agent了。可以尝试调下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

2 participants