diff options
| author | sigoden <sigoden@gmail.com> | 2023-11-07 11:54:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-07 11:54:56 +0800 |
| commit | d40f104f667073f320a01d9c1a91aa88225ccaeb (patch) | |
| tree | df915b72efb7051a53a95439c2d8cc4627921c8e /src/client/qianwen.rs | |
| parent | 9a8b302432a3f9bfa1e467dde027fc92dacce3e2 (diff) | |
| download | aichat-d40f104f667073f320a01d9c1a91aa88225ccaeb.tar.gz | |
feat: allow the use of an unlisted model (#219)
Diffstat (limited to 'src/client/qianwen.rs')
| -rw-r--r-- | src/client/qianwen.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs index b8e0d6f..2ed9945 100644 --- a/src/client/qianwen.rs +++ b/src/client/qianwen.rs @@ -68,6 +68,8 @@ impl QianwenClient { let stream = data.stream; let body = build_body(data, self.model.name.clone()); + debug!("Qianwen Request: {API_URL} {body}"); + let mut builder = client.post(API_URL).bearer_auth(api_key).json(&body); if stream { builder = builder.header("X-DashScope-SSE", "enable"); |
