Struct cordyceps_api::chat::Payload
source · pub struct Payload {
pub model: Model,
pub messages: Vec<Message>,
pub temperature: f64,
pub top_p: f64,
pub n: isize,
pub stream: bool,
pub stop: Option<String>,
pub max_tokens: isize,
pub presence_penalty: f64,
pub frequency_penalty: f64,
pub logit_bias: HashMap<String, f64>,
pub user: String,
}
Expand description
The payload contains all of the data needed to complete a chat.
See OpenAi's Completion Documentation
for more information on each field’s meaning
It’s not recommended to construct this directly. See PayloadBuilder
for
intended usage.
Fields§
§model: Model
§messages: Vec<Message>
§temperature: f64
§top_p: f64
§n: isize
§stream: bool
§stop: Option<String>
§max_tokens: isize
§presence_penalty: f64
§frequency_penalty: f64
§logit_bias: HashMap<String, f64>
§user: String