alfianlosari / ChatGPTSwift

Access ChatGPT API using Swift
MIT License
637 stars 124 forks source link

add stop option to request #31

Closed charliehuang09 closed 3 months ago

charliehuang09 commented 7 months ago
alfianlosari commented 3 months ago

Hi, sorry for late reply, this has been added in 2.3.1 release! https://github.com/alfianlosari/ChatGPTSwift/releases/tag/2.3.1

alfianlosari commented 3 months ago

The API has been refactored to use OpenAPI OpenAI generated type since 2.0.0. I closed the MR as the changes are not valid anymore when using the new interface 🙏

you can simply use the latest version and pass the stop parameter with the new type.