client icon indicating copy to clipboard operation
client copied to clipboard

Modify the properties in CreateResponseUsageCompletionTokensDetails to allow null

Open Yurunsoft opened this issue 10 months ago • 1 comments

What:

  • [x] Bug Fix
  • [ ] New Feature

Description:

This fix is to make this lib compatible with third-party OpenAI-like APIs, which might not return certain fields within the usage.

Related:

Yurunsoft avatar Feb 06 '25 05:02 Yurunsoft

Marking as draft. There are conflicts on this PR. Sorry for the delay in reviewing.

iBotPeaches avatar Apr 08 '25 23:04 iBotPeaches

This was resolved in a different PR - https://github.com/openai-php/client/pull/560 - closing.

iBotPeaches avatar Aug 20 '25 10:08 iBotPeaches