diff options
| author | sigoden <sigoden@gmail.com> | 2023-03-02 23:11:34 +0800 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2023-03-02 23:11:34 +0800 |
| commit | 57844638ce504f1a69eb770f27bbafb7077ccb19 (patch) | |
| tree | 83eefc00f871c8f8eb7132fcb1f56752a546fc49 /src/config.rs | |
| parent | f6e4e4889ce0e326570b6b855e0a3c3fc8e526cb (diff) | |
| download | aichat-57844638ce504f1a69eb770f27bbafb7077ccb19.tar.gz | |
feat: add config.temperature
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 0feed64..729320e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -7,6 +7,8 @@ use serde::Deserialize; pub struct Config { /// Openai api key pub api_key: String, + /// What sampling temperature to use, between 0 and 2 + pub temperature: Option<f64>, /// Set proxy pub proxy: Option<String>, /// Used only for debugging |
