Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lalanikarim committed Jul 5, 2024
1 parent d00ea95 commit 5c33c8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ class AnswerWithJustification(BaseModel):
)
llm = self.bind_tools(tools=[schema])
if is_pydantic_schema:
output_parser: OutputParserLike = PydanticOutputParser(
pydantic_object=schema
output_parser: OutputParserLike = PydanticOutputParser( # type: ignore[type-var]
pydantic_object=schema # type: ignore[type-var]
)
else:
output_parser = JsonOutputParser()
Expand Down

0 comments on commit 5c33c8a

Please sign in to comment.