windmill_api/models/
complete_ai_200_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CompleteAi200Response {
16 #[serde(rename = "text")]
17 pub text: String,
18 #[serde(rename = "model")]
19 pub model: Box<models::AiProviderModel>,
20}
21
22impl CompleteAi200Response {
23 pub fn new(text: String, model: models::AiProviderModel) -> CompleteAi200Response {
24 CompleteAi200Response {
25 text,
26 model: Box::new(model),
27 }
28 }
29}
30