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

[Bug]: Example04_Dynamic_GroupChat_Coding_Task throwing exception #2970

Closed
teeshajain17 opened this issue Jun 19, 2024 · 9 comments
Closed
Labels
dotnet issues related to AutoGen.Net

Comments

@teeshajain17
Copy link

teeshajain17 commented Jun 19, 2024

Describe the bug

I was running this example in my system and it is throwing error.
https://github.com/microsoft/autogen/blob/ca4f7176169d5f40b5e7570aab7dce4a37bd088f/dotnet/sample/AutoGen.BasicSamples/Example04_Dynamic_GroupChat_Coding_Task.cs

Steps to reproduce

No response

Model Used

gpt-3.5

Expected Behavior

It shouldn't throw exception

Screenshots and logs

image

Details:

System.InvalidOperationException
HResult=0x80131509
Message=Sequence contains no matching element
Source=System.Linq
StackTrace:
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at AutoGen.Core.GroupChat.d__10.MoveNext()
at AutoGen.Core.GroupChat.d__12.MoveNext()
at AutoGen.Core.AgentExtension.d__6.MoveNext()
at AutoGen.Core.AgentExtension.d__2.MoveNext()
at AutoGen.Core.AgentExtension.d__3.MoveNext()
at Example04_Dynamic_GroupChat_Coding_Task.d__0.MoveNext() in C:\Users\91701\source\repos\TestAutoGen\TestAutoGen\Example04_Dynamic_GroupChat_Coding_Task.cs:line 250
at Program.

d__0.MoveNext() in C:\Users\91701\source\repos\TestAutoGen\TestAutoGen\Program.cs:line 7

Additional Information

No response

@qingyun-wu qingyun-wu added the dotnet issues related to AutoGen.Net label Jun 19, 2024
@LittleLittleCloud
Copy link
Collaborator

@teeshajain17 Your api-key is exposed in your previous screenshot, I just update the image to remove the api-key part. In the meantime, please deprecate your current api-key ASAP

@teeshajain17
Copy link
Author

Sure. Thanks

@LittleLittleCloud
Copy link
Collaborator

@teeshajain17 Maybe try a better llm (gpt-4) and see if the error persist? Example-04 is one of the "challenging" tasks that may require a more powerful LLM to complete.

@teeshajain17
Copy link
Author

Okay. let me try that.

@teeshajain17
Copy link
Author

It worked. Thanks! Could you suggest a simple example that demonstrates the functionality of the group chat feature and can be accomplished by GPT-3.5?

@LittleLittleCloud
Copy link
Collaborator

LittleLittleCloud commented Jun 19, 2024

@teeshajain17 Am working on it, you can track progress in #2859. Also feel free to add sample request under that issue

@teeshajain17
Copy link
Author

@LittleLittleCloud Can I help in any way? I would love to contribute.

@LittleLittleCloud
Copy link
Collaborator

@teeshajain17 Of course, I can add you as reviewer once the PR is ready. In the meantime the remaining imcomplete samples are the below two, let me know which one you want to take.
image

Also feel free to edit the task list by adding the sample you want to create and assign that sample to yourself.

@teeshajain17
Copy link
Author

I'm unsure about what to do exactly and how to create these sample examples because I've just started learning Autogen. However, please include me as a reviewer in the pull request.

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

No branches or pull requests

3 participants