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.
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 ofchoices
to the input of textsendCompletion()
, similar to what you already have forsendImages()
withnumImages
.This would mean: in
struct Command: Encodable
addlet numChoices: Int
. Inextension OpenAISwift
addnumChoices: Int = 1
to the end ofsendCompletion(with prompt:...)
, similarly forsendCompletion(with prompt:...) async
.I feel that a formal pull request for such a minor update is not warranted.