Skip to content

Commit

Permalink
Merge pull request #28 from AlexisTM/feat/make_generation_options_des…
Browse files Browse the repository at this point in the history
…erializable

feat: make GenerationOptions deserializable
  • Loading branch information
pepperoni21 authored Feb 25, 2024
2 parents ddac73e + af311fd commit 01db8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generation/options.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use serde::Serialize;
use serde::{Serialize, Deserialize};

Check warning on line 1 in src/generation/options.rs

View workflow job for this annotation

GitHub Actions / Formatting

Diff in /home/runner/work/ollama-rs/ollama-rs/src/generation/options.rs

/// Options for generation requests to Ollama.
#[derive(Debug, Clone, Serialize, Default)]
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct GenerationOptions {
pub(super) mirostat: Option<u8>,
pub(super) mirostat_eta: Option<f32>,
Expand Down

0 comments on commit 01db8f6

Please sign in to comment.