openai_struct/models/log_prob_properties.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub LogProbProperties : A log probability object.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct LogProbProperties {
18 /// The bytes that were used to generate the log probability.
19 #[serde(rename = "bytes")]
20 pub bytes: Vec<i32>,
21 /// The log probability of the token.
22 #[serde(rename = "logprob")]
23 pub logprob: f32,
24 /// The token that was used to generate the log probability.
25 #[serde(rename = "token")]
26 pub token: String,
27}