Skip to content

Update OpenAI adapter to check for tool calls if the LLM returns empty content #55

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

Merged

Conversation

SilasMarvin
Copy link
Contributor

@SilasMarvin SilasMarvin commented May 26, 2025

I noticed that when using qwen3 with Ollama the LLM would often return empty content as well as tool calls.

I updated the OpenAI adapter to check if the content is empty before skipping the check for tool calls.

Also this is an awesome crate thank you!

@jeremychone
Copy link
Owner

@SilasMarvin Great. Thanks for this tuneup. I am going to merge it as is.

Thanks for the clean PR!

@jeremychone jeremychone merged commit 26ed7be into jeremychone:main May 26, 2025
@jeremychone jeremychone added the PR-MERGED Added for PR that somehow did not get the Merge label May 26, 2025
jeremychone added a commit that referenced this pull request May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-MERGED Added for PR that somehow did not get the Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants