1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
1011use crate::models;
12use serde::{Deserialize, Serialize};
1314#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WorkflowCustomModel {
16/// This is the provider of the model (`custom`).
17#[serde(rename = "provider")]
18pub provider: ProviderTrue,
19/// This is the custom model that will be used.
20#[serde(rename = "model")]
21pub model: String,
22}
2324impl WorkflowCustomModel {
25pub fn new(provider: ProviderTrue, model: String) -> WorkflowCustomModel {
26 WorkflowCustomModel { provider, model }
27 }
28}
29/// This is the provider of the model (`custom`).
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum ProviderTrue {
32#[serde(rename = "custom")]
33Custom,
34}
3536impl Default for ProviderTrue {
37fn default() -> ProviderTrue {
38Self::Custom
39 }
40}