Skip to content

Conversation

LuminaX-alt
Copy link
Owner

Summary

Fixes issue openai#2489 by making logprobs optional in ResponseTextDeltaEvent to prevent validation errors when logprobs is absent in streaming payloads.

Changes

  • Updated Pydantic model to Optional[Any] = None
  • Added unit test to validate missing logprobs scenario

Why

v1.97.1 introduces stricter validation that breaks streaming behavior for litellm models, where logprobs might be omitted.

Closes openai#2489

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

)

### Summary
Fixes issue openai#2489 by making `logprobs` optional in `ResponseTextDeltaEvent` to prevent validation errors when `logprobs` is absent in streaming payloads.

### Changes
- Updated Pydantic model to `Optional[Any] = None`
- Added unit test to validate missing logprobs scenario

### Why
v1.97.1 introduces stricter validation that breaks streaming behavior for litellm models, where `logprobs` might be omitted.

Closes openai#2489
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation error for ResponseTextDeltaEvent after updating to 1.97.1
1 participant