[app] Use AzureChatOpenAI.with_structured_output instead of PydanticOutputParser
Open
enhancement
- Dominant language
- Python
- Stars
- 26
- Forks
- 1
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 25
Description
### StatGPT Backend version
0.2.0
### What is the problem this feature will solve?
Currently, we use `PydanticOutputParser` to generate format instructions and populate them into the prompt template for parsing outputs into Pydantic models. `AzureChatOpenAI` now has native support of Pydantic models parsing through `with_structured_output` method
### What is the feature you are proposing to solve the problem?
Use `AzureChatOpenAI.with_structured_output`
### What alternatives have you considered?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.