Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda committed Jan 13, 2025
1 parent 06289e0 commit f182068
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@
")\n",
"\n",
"evaluator = prompt | ChatOpenAI(model=\"gpt-4-turbo-preview\").with_structured_output(\n",
" RedTeamingResult\n",
" RedTeamingResult, method=\"function_calling\"\n",
")\n",
"\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/llm-compiler/LLMCompiler.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@
") # You can optionally add examples\n",
"llm = ChatOpenAI(model=\"gpt-4-turbo-preview\")\n",
"\n",
"runnable = joiner_prompt | llm.with_structured_output(JoinOutputs)"
"runnable = joiner_prompt | llm.with_structured_output(JoinOutputs, method=\"function_calling\")"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/rag/langgraph_agentic_rag.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
" model = ChatOpenAI(temperature=0, model=\"gpt-4-0125-preview\", streaming=True)\n",
"\n",
" # LLM with tool and validation\n",
" llm_with_tool = model.with_structured_output(grade)\n",
" llm_with_tool = model.with_structured_output(grade, method=\"function_calling\")\n",
"\n",
" # Prompt\n",
" prompt = PromptTemplate(\n",
Expand Down

0 comments on commit f182068

Please sign in to comment.