You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating such a useful Swift Package.
It would be great if you could tweak your code by adding a simple property, to allow for selecting the
number of choices to the input of text sendCompletion(), similar to what you already have for sendImages()
with numImages.
This would mean:
in struct Command: Encodable add let numChoices: Int.
In extension OpenAISwift add numChoices: Int = 1 to the end of sendCompletion(with prompt:...),
similarly for sendCompletion(with prompt:...) async.
I feel that a formal pull request for such a minor update is not warranted.
The text was updated successfully, but these errors were encountered:
Thank you for creating such a useful Swift Package.
It would be great if you could tweak your code by adding a simple
property
, to allow for selecting thenumber of
choices
to the input of textsendCompletion()
, similar to what you already have forsendImages()
with
numImages
.This would mean:
in
struct Command: Encodable
addlet numChoices: Int
.In
extension OpenAISwift
addnumChoices: Int = 1
to the end ofsendCompletion(with prompt:...)
,similarly for
sendCompletion(with prompt:...) async
.I feel that a formal pull request for such a minor update is not warranted.
The text was updated successfully, but these errors were encountered: