epam / epam/statgpt-backend

[app] Use AzureChatOpenAI.with_structured_output instead of PydanticOutputParser

Open
#60 0 comments 0 reactions 1 assignee Claimed by @veryniceuser View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.