pub struct WorkflowOpenAiModel {
pub provider: ProviderTrue,
pub model: ModelTrue,
pub temperature: Option<f64>,
pub max_tokens: Option<f64>,
}
Fields§
§provider: ProviderTrue
This is the provider of the model (openai
).
model: ModelTrue
This is the OpenAI model that will be used. When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn’t be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/.
temperature: Option<f64>
This is the temperature of the model.
max_tokens: Option<f64>
This is the max tokens of the model.
Implementations§
Source§impl WorkflowOpenAiModel
impl WorkflowOpenAiModel
pub fn new(provider: ProviderTrue, model: ModelTrue) -> WorkflowOpenAiModel
Trait Implementations§
Source§impl Clone for WorkflowOpenAiModel
impl Clone for WorkflowOpenAiModel
Source§fn clone(&self) -> WorkflowOpenAiModel
fn clone(&self) -> WorkflowOpenAiModel
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WorkflowOpenAiModel
impl Debug for WorkflowOpenAiModel
Source§impl Default for WorkflowOpenAiModel
impl Default for WorkflowOpenAiModel
Source§fn default() -> WorkflowOpenAiModel
fn default() -> WorkflowOpenAiModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkflowOpenAiModel
impl<'de> Deserialize<'de> for WorkflowOpenAiModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkflowOpenAiModel
impl PartialEq for WorkflowOpenAiModel
Source§impl Serialize for WorkflowOpenAiModel
impl Serialize for WorkflowOpenAiModel
impl StructuralPartialEq for WorkflowOpenAiModel
Auto Trait Implementations§
impl Freeze for WorkflowOpenAiModel
impl RefUnwindSafe for WorkflowOpenAiModel
impl Send for WorkflowOpenAiModel
impl Sync for WorkflowOpenAiModel
impl Unpin for WorkflowOpenAiModel
impl UnwindSafe for WorkflowOpenAiModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more