-
-
Notifications
You must be signed in to change notification settings - Fork 6
OpenAI.TokenEngine.Count
Andrew Lambert edited this page Jun 1, 2024
·
2 revisions
OpenAI.TokenEngine.Count
Dim Count As Integer ' read-only
This property contains the number of tokens in the response, if that information is available.
Dim reply As OpenAI.ChatCompletion = OpenAI.ChatCompletion.Create(chatlog, "user", "Who won the world series in 2020?")
Dim tokencount As Integer = reply.Tokens.Count
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.