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

Add list of strings output adapter and update providers to handle the new attribute #47

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

swerner
Copy link
Contributor

@swerner swerner commented Jul 22, 2024

Added a new output adapter to support returning a list of strings from a prompt.

Needed to add handling for the items.type attribute to the 3 providers. That format_properties method is starting to get messy. I suspect the next few output adapters on the issues list will help us figure out a better way of handling those attributes on the providers end without having to add something new each time we create a new output adapter.

Also updated the Gemini provider to use function calling because the previous XML style function calling was looking like it would be too much work to support parsing arrays in its responses...but in doing so, it screwed up the other tests and now gemini won't call functions correctly for the single_string adapter 🤦

Going to think on what to do for a bit but wanted to get this up for now...may need to fix #43 to get gemini working reliably again...

@AndrewBKang
Copy link
Contributor

one test but otherwise lgtm~

@AndrewBKang
Copy link
Contributor

🔥 🚀

@AndrewBKang
Copy link
Contributor

👍

@swerner swerner merged commit f74a35e into main Jul 26, 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.

Single string output adapter occasionally comes back empty or generic
2 participants