Commit db2a0dc
authored
Parser for openai must have
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Makes `created` field in `ChatCompletionGeneric` optional during
deserialization to handle missing values in OpenAI responses.
>
> - **Deserialization**:
> - Makes `created` field in `ChatCompletionGeneric` optional by adding
`#[serde(default, ...)]`, allowing missing `created` in OpenAI responses
to deserialize as `None`.
> - **Scope**:
> - Change is limited to `types.rs`, only affects
`ChatCompletionGeneric` struct.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 81ef224. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->created as an optional field (#1778)1 parent b2dc8d0 commit db2a0dc
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments