Skip to content

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

@SanftMonster SanftMonster requested a review from xbotter November 19, 2023 06:56
@SanftMonster
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.

@SanftMonster
Copy link
Collaborator

Thank you for this contribution! :)

@SanftMonster SanftMonster merged commit cf4edea into SciSharp:master Nov 24, 2023
@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