Instance Propertymacpaw.openai 0.3.2OpenAI
token
The token.
let token: String
The token.
let token: String
s6OpenAI16ChatStreamResultV6ChoiceV0F8LogprobsV0C22CompletionTokenLogprobV03TopJ0V5tokenSSvp
What are these?3YH7E
import OpenAI
struct TopLogprob
struct ChatStreamResult
struct Choice
struct ChoiceLogprobs
struct ChatCompletionTokenLogprob
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
let bytes: [Int]?
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.
let logprob: Double
The log probability of this token.