Skip to content

feat: add response_format param to OllamaChatGenerator #1326

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
merged 15 commits into from
Jan 29, 2025

Conversation

Amnah199
Copy link
Contributor

Related Issues

Proposed Changes:

Add a new param response_format to the OllamaChatGenerator to support structured outputs.

How did you test it?

Updated the tests

Notes for the reviewer

The previous PR got convoluted due to merge conflicts.

Checklist

@Amnah199 Amnah199 marked this pull request as ready for review January 28, 2025 16:37
@Amnah199 Amnah199 requested a review from a team as a code owner January 28, 2025 16:37
@Amnah199 Amnah199 requested review from anakin87 and removed request for a team January 28, 2025 16:37
Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is going in a good direction.
I left some comments.

@anakin87 anakin87 self-requested a review January 29, 2025 13:40
Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from one point on which I leave it up to you to decide, this PR looks good.

@Amnah199 Amnah199 merged commit f08c264 into main Jan 29, 2025
8 checks passed
@Amnah199 Amnah199 deleted the add-response-format-ollama branch January 29, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration:ollama type:documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add format support for Ollama generators
2 participants