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

Removing magic from openai functions #2

Merged
merged 6 commits into from
Jul 19, 2023

Conversation

rogeriochaves
Copy link
Owner

@rogeriochaves rogeriochaves commented Jul 19, 2023

Thanks to the feedback from brad0577 in our Discord channel:

image

I agree, I got carried away when implementing OpenAI functions, but this is not the philosophy for LiteChain. So indeed I am removing this functionality from LiteChain, and functions will now receive a list of dicts with the schema as the official API does.

Unfortunately this will be a breaking change, hopefully for quite few people at this point. To cover up a bit, I'm adding an example in the docs using the openai_function_call schema to at least cover the schema extraction part.

Going forward, if we want to have the chain-calling-another-chain directly functionality, it would be better to be something else composing on top of OpenAIChatChain, and not ingrained into it

Thanks brad!

[1] Link to the updated docs on OpenAI function calling
[2] Link to the example using openai_function_call to extract the schema

@rogeriochaves rogeriochaves merged commit aa00803 into main Jul 19, 2023
1 check passed
@rogeriochaves rogeriochaves changed the title Removing magic openai functions Removing magic from openai functions Jul 19, 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.

1 participant