From af311fdd9f2a271bc299b88ce5e8b54f8b07e0f8 Mon Sep 17 00:00:00 2001 From: Alexis Paques Date: Sat, 17 Feb 2024 11:11:07 +0100 Subject: [PATCH] feat: make GenerationOptions deserializable --- src/generation/options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generation/options.rs b/src/generation/options.rs index c8c8c6c..4667f91 100644 --- a/src/generation/options.rs +++ b/src/generation/options.rs @@ -1,7 +1,7 @@ -use serde::Serialize; +use serde::{Serialize, Deserialize}; /// Options for generation requests to Ollama. -#[derive(Debug, Clone, Serialize, Default)] +#[derive(Debug, Clone, Serialize, Deserialize, Default)] pub struct GenerationOptions { pub(super) mirostat: Option, pub(super) mirostat_eta: Option,