summaryrefslogtreecommitdiffstats
path: root/src/client/qianwen.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-25 14:39:31 +0800
committerGitHub <noreply@github.com>2024-04-25 14:39:31 +0800
commit1a56e38fe22336e6b6587ff7d99218295e28235f (patch)
tree0b19a492fe27ad2f5f8a98f1eca89cb73d3fcd50 /src/client/qianwen.rs
parenta193710a7f88de12ef11c5a5c66a5591150fe247 (diff)
downloadaichat-1a56e38fe22336e6b6587ff7d99218295e28235f.tar.gz
refactor: fix typo and some error message (#438)
Diffstat (limited to 'src/client/qianwen.rs')
-rw-r--r--src/client/qianwen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs
index 76cc712..68e3666 100644
--- a/src/client/qianwen.rs
+++ b/src/client/qianwen.rs
@@ -320,7 +320,7 @@ async fn upload(model: &str, api_key: &str, url: &str) -> Result<String> {
let status = res.status();
if res.status() != 200 {
let text = res.text().await?;
- bail!("{status}, {text}")
+ bail!("Invalid response data: {text} (status: {status})")
}
Ok(format!("oss://{key}"))
}