diff options
| author | rolfwilms <rolf_wilms@hotmail.com> | 2024-05-25 23:52:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-26 05:52:24 +0800 |
| commit | 569317728cf39f26d4ca3d58eae6cdc72754354e (patch) | |
| tree | 7eef3dae50d7e40f35be5acb73c416ccb665ea91 /src/client | |
| parent | 5458150ed3203cf13b0371efa2c791ac696cee93 (diff) | |
| download | aichat-569317728cf39f26d4ca3d58eae6cdc72754354e.tar.gz | |
fix: bedrock issues (#544)
* Removed extraneous key [stream] for AWS Bedrock Claude models.
* Reduceddefault AWS Bedrock llama-3 max_output_tokens to 2048 to align with API requirements.
---------
Co-authored-by: Rolf Wilms <rwilms@csc.com>
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/bedrock.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/bedrock.rs b/src/client/bedrock.rs index 59b8102..1f13c7f 100644 --- a/src/client/bedrock.rs +++ b/src/client/bedrock.rs @@ -217,6 +217,7 @@ fn build_body(data: SendData, model: &Model, model_category: &ModelCategory) -> let mut body = claude_build_body(data, model)?; if let Some(body_obj) = body.as_object_mut() { body_obj.remove("model"); + body_obj.remove("stream"); } body["anthropic_version"] = "bedrock-2023-05-31".into(); Ok(body) |
