swift-llm-chat-openai icon indicating copy to clipboard operation
swift-llm-chat-openai copied to clipboard

CompletionTokensDetails can be nil (should be optional)

Open AlexKlim opened this issue 6 months ago • 0 comments

For ChatCompletion and ChatCompletionChunk, the CompletionTokensDetails can be nil and should be optional. Otherwise, it cause the decoding error

AlexKlim avatar May 16 '25 23:05 AlexKlim