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

Added a converter similar to the Open AI one #315

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

futzy314
Copy link
Contributor

This is all based on the same classes in their OpenAI implementation. I tested it with a couple of Microsoft's sample projects in Semantic Kernel, and it seems to work. I didn't see any unit tests for the Semantic Kernel code yet, but if you want to start adding that, I can add some unit tests too.

Fixes #313

@AsakusaRinne
Copy link
Collaborator

Thank you for the contribution! If you would like to, we'll appreciate it if you could add some unit test about semantic-kernel. Note that this is not a required one, the overall looks very good to me. :)

Copy link
Collaborator

@xbotter xbotter left a comment

Choose a reason for hiding this comment

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

LGTM.

@futzy314
Copy link
Contributor Author

OK, I can work on some unit tests too, will add here. One other suggestion, I think the ChatRequestSettings class is misnamed, because it doesn't just apply to Chat, it applies to Text as well. I suggest renaming it to LlamaRequestSettings.

@AsakusaRinne
Copy link
Collaborator

Thank you for this contribution! :)

@AsakusaRinne AsakusaRinne merged commit cf4edea into SciSharp:master Nov 24, 2023
3 checks passed
@yukimakura
Copy link

I was struggling with this very issue just now. Thanks for the great pull request!

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.

AIRequestSettings object can not be brute forced into a ChatRequestSettings object
4 participants