diff options
| author | sigoden <sigoden@gmail.com> | 2024-03-22 19:24:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-22 19:24:22 +0800 |
| commit | 527da63d18def9cec29c89387de988b43acb7d24 (patch) | |
| tree | 368286b2ae7dfc374f43ae8829ab1107399d7c83 /src/client/claude.rs | |
| parent | 4d52479545082254315171d6716ee9c3588f76f5 (diff) | |
| download | aichat-527da63d18def9cec29c89387de988b43acb7d24.tar.gz | |
refactor: do not automatically convert temperature value (#368)
Diffstat (limited to 'src/client/claude.rs')
| -rw-r--r-- | src/client/claude.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/claude.rs b/src/client/claude.rs index ea17f66..d1b39d7 100644 --- a/src/client/claude.rs +++ b/src/client/claude.rs @@ -204,7 +204,7 @@ fn build_body(data: SendData, model: String) -> Result<Value> { }); if let Some(v) = temperature { - body["temperature"] = (v / 2.0).into(); + body["temperature"] = v.into(); } if stream { body["stream"] = true.into(); |
