Skip to content

Commit

Permalink
fix: remove deprecated schema and use model_json_schema instead in ll…
Browse files Browse the repository at this point in the history
…m_interface
  • Loading branch information
provos committed Nov 13, 2024
1 parent 22952ed commit e066e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/planai/llm_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def get_format_instructions(pydantic_object: Type[BaseModel]) -> str:
{schema}
```
"""
schema = pydantic_object.schema().copy()
schema = pydantic_object.model_json_schema().copy()

schema.pop("title", None)
schema.pop("type", None)
Expand Down

0 comments on commit e066e79

Please sign in to comment.