nixos/patches/heygpt-default-model.patch

14 lines
359 B
Diff
Raw Normal View History

diff --git a/src/main.rs b/src/main.rs
index 7263c4c..f0ba36d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -31,7 +31,7 @@ struct Options {
/// The model to query (default: gpt-3.5-turbo)
#[default(String::from("gpt-3.5-turbo"))]
- #[arg(long)]
+ #[arg(long, default_value = "gpt-3.5-turbo")]
pub model: String,
/// OpenAI API key