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 functionCall to ChatQuery #82

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Conversation

nathanborror
Copy link
Contributor

ChatQuery was missing functionCall which can be used to force the usage of given function names. API docs can be found here: https://platform.openai.com/docs/api-reference/chat/create#chat/create-function_call

It's a bit of a weird value type so I had to do some custom encoding.

Adding `functionCall` to ChatQuery.
Add `functionCall` test
Copy link
Collaborator

@Krivoblotsky Krivoblotsky left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Krivoblotsky Krivoblotsky merged commit a9965f0 into MacPaw:main Jul 10, 2023
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