-
-
Notifications
You must be signed in to change notification settings - Fork 6
OpenAI.TokenEngine.Alternates
Andrew Lambert edited this page Jun 1, 2024
·
4 revisions
OpenAI.TokenEngine.Alternates
Function Alternates(TokenIndex As Integer) As Dictionary
Name | Type | Comment |
---|---|---|
TokenIndex | Integer | The index of the token to get alternate tokens for. |
A Dictionary of "string":Double
pairs containing the alternate tokens and their probabilities.
This example gets the alternate tokens for the first token in the response.
Dim reply As OpenAI.ChatCompletion = OpenAI.ChatCompletion.Create(chatlog, "user", "Who won the world series in 2020?")
Dim alternates As Dictionary = reply.Tokens.Alternates(0)
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2023-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.