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

Cookbook - import ChatOpenAPI to make also this section run by its own #59

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion LangChain Cookbook Part 1 - Fundamentals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@
"id": "07045ae3",
"metadata": {},
"source": [
"### **Output Parsers Method 2: OpenAI Fuctions**\n",
"### **Output Parsers Method 2: OpenAI Functions**\n",
"When OpenAI released function calling, the game changed. This is recommended method when starting out.\n",
"\n",
"They trained models specifically for outputing structured data. It became super easy to specify a Pydantic schema and get a structured output.\n",
Expand Down Expand Up @@ -1035,6 +1035,7 @@
],
"source": [
"from langchain.chains.openai_functions import create_structured_output_chain\n",
"from langchain.chat_models import ChatOpenAI\n",
"\n",
"llm = ChatOpenAI(model='gpt-4-0613', openai_api_key=openai_api_key)\n",
"\n",
Expand Down