Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding numChoices to sendCompletion #67

Open
workingDog opened this issue Mar 30, 2023 · 0 comments
Open

adding numChoices to sendCompletion #67

workingDog opened this issue Mar 30, 2023 · 0 comments

Comments

@workingDog
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant