aallam / openai-kotlin

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

feat: add `RequestOptions` #296

Closed aallam closed 10 months ago

aallam commented 10 months ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue Fix #295

Describe your change

Add RequestOptions to all non-deprecated methods.

What problem is this fixing?

This adds the capability to override headers, URL parameters, and timeouts on a per-request basis.

ooyamatakehisa commented 10 months ago

Thank you for the quick implementation!