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

Gpt 3.5 turbo 0613 serialization support #186

Merged
merged 4 commits into from
Jun 16, 2023

Conversation

raulraja
Copy link
Contributor

@raulraja raulraja commented Jun 14, 2023

Support for Open AI function calling on chat completions:
https://platform.openai.com/docs/guides/gpt/function-calling

This means we no longer need to instruct the LLM to produce serializable json based on a schema.
Instead, we create a function whose parameters are the schema per the new Open AI support for function calls on.
For now available in gpt-3.5-turbo-0613 and missing for gpt-4-0613, which I have not been able to test but should be a matter of adding the constants in the model list.

@raulraja raulraja marked this pull request as draft June 14, 2023 22:22
@raulraja raulraja marked this pull request as ready for review June 14, 2023 22:39
@raulraja
Copy link
Contributor Author

@xebia-functional/team-ai

@raulraja
Copy link
Contributor Author

raulraja commented Jun 15, 2023

@franciscodr @realdavidvega you were interested in this area. I'd like to use this work in the demo @franciscodr @nomisRev and I are working on. If you have a chance, please let me know if this needs changes before we merge it 🙏

@raulraja raulraja merged commit 58c6340 into main Jun 16, 2023
@raulraja raulraja deleted the gpt-3.5-turbo-0613-serialization-support branch June 16, 2023 10:06
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