Skip to content

Conversation

@rogerbarreto
Copy link
Contributor

@rogerbarreto rogerbarreto commented Oct 19, 2024

Temporaty fix (Non-breaking) to support parameters values that aren't strings from the Ollama API.

Ideally the Dictionary should support <string, object?> but this is coming soon as a breaking change, this PR changes it to not break for now, before the shift happens.

@awaescher
Copy link
Owner

Hey Roger, it seems that this is exactly what happened over at #111, right? So if we merge the IChatClient, we don't need this pull-request and its temporary approch?

@rogerbarreto
Copy link
Contributor Author

IChatClient will resolve the problem but will be in a preview.
This PR allows you to keep the 3.0 non-preview version that is a bit more resilient when the model responds with non-string arguments. (SK will only be able to use the 4.0-preview in a feature branch (not in our main) only going to main when AI Abstractions it's not preview anymore.

@awaescher
Copy link
Owner

I see. I am going to merge this, cherry-pick it over to 4.0 and remove the temporary workaround.
Thanks once again!

@awaescher awaescher merged commit 6d3470f into awaescher:main Oct 21, 2024
1 check passed
@awaescher awaescher mentioned this pull request Oct 21, 2024
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