aallam / openai-kotlin

OpenAI API client for Kotlin with multiplatform and coroutines capabilities.
MIT License
1.5k stars 180 forks source link

Make ChatCompletionChunk.created long #378

Closed BFergerson closed 2 months ago

BFergerson commented 3 months ago

Unix timestamps should be longs.

ChatCompletion.created is Long (https://platform.openai.com/docs/api-reference/chat/object#chat/object-created) but ChatCompletionChunk.created is Int (https://platform.openai.com/docs/api-reference/chat/streaming#chat/streaming-created) even though they hold the same data.

aallam commented 2 months ago

Thank you for your contribution!