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

Fix: Avoid generating empty tool messages when there's no content for it #138

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

RogerBarreto
Copy link
Contributor

@RogerBarreto RogerBarreto commented Nov 7, 2024

This PR adds a specific condition that will prevent generating extra messages when the abstraction only have FunctionResultContent Contents.

Also fixes a limitation where stop sequences implementation was expecting a string[] not working even when a valid IEnumerable<string> was provided.

@awaescher
Copy link
Owner

Nice spot, thanks Roger!

@awaescher awaescher merged commit 62081c7 into awaescher:main Nov 7, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants