-
Notifications
You must be signed in to change notification settings - Fork 20.3k
Generic OpenAI fn chain #7270
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
Generic OpenAI fn chain #7270
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hwchase17
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think we want a chain that also calls the function. i think we just want easy ways to create LLMChains that utilize openai fucnctions
| } | ||
|
|
||
|
|
||
| def convert_python_function_to_openai_function(function: Callable) -> Dict[str, Any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty cool that you can do that
|
|
||
| else: | ||
| raise ValueError( | ||
| f"Unsupposerted function type {type(function)}. Functions must be passed in as Dict, pydantic.BaseModel, or Callable." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Unsupposerted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can drop or move the running function example if we prefer
No description provided.