Skip to content

Conversation

@baskaryan
Copy link
Collaborator

No description provided.

@baskaryan baskaryan requested a review from hwchase17 July 6, 2023 10:12
@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2023 9:40am

Copy link
Contributor

@hwchase17 hwchase17 left a 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]:
Copy link
Contributor

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."
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: Unsupposerted

Copy link
Collaborator Author

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

@vercel vercel bot temporarily deployed to Preview July 6, 2023 21:27 Inactive
@baskaryan baskaryan marked this pull request as ready for review July 6, 2023 21:38
@vercel vercel bot temporarily deployed to Preview July 7, 2023 09:40 Inactive
@baskaryan baskaryan merged commit 1c8cff3 into master Jul 7, 2023
@baskaryan baskaryan deleted the bagatur/openai_fn_chain branch July 7, 2023 09:44
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.

4 participants