OpenAISwift
OpenAISwift copied to clipboard
Added user, temperature, topProbabilityMass, choices, stop, presencePenalty, frequencyPenalty parameters to ChatConversation and sendChat functions.
Added the following to the ChatConversation, and both sendChat functions:
- user
- temperature
- topProbabilityMass (top_p)
- choices (n)
- stop
- presencePenalty (presence_penalty)
- frequencyPenalty (frequency_penalty)
Corresponding strings have been added to the CodingKeys in ChatConversation. All added parameters are optional values, and do not have to be added when calling sendChat.
Note that the following parameters still need to be added:
- stream
- logit_bias
The stream parameter makes it so that tokens are sent as server-sent events. This may require the use of another library such as https://github.com/inaka/EventSource.
@JosephChing thanks for the PR can you resolve conflicts? Thank you!
@adamrushy Done!