mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-31 18:38:48 +00:00
notebook fmt (#12498)
This commit is contained in:
@@ -33,6 +33,8 @@ class Info(BaseModel):
|
||||
model = AnthropicFunctions()
|
||||
function = [convert_pydantic_to_openai_function(Info)]
|
||||
|
||||
chain = prompt | model.bind(
|
||||
functions=function, function_call={"name": "Info"}
|
||||
) | JsonKeyOutputFunctionsParser(key_name="papers")
|
||||
chain = (
|
||||
prompt
|
||||
| model.bind(functions=function, function_call={"name": "Info"})
|
||||
| JsonKeyOutputFunctionsParser(key_name="papers")
|
||||
)
|
||||
|
Reference in New Issue
Block a user