From 1c9ca1b002badb511ff21d58b3f20986741ab31f Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 24 Dec 2023 16:04:18 +0800 Subject: feat: custom REPL prompt (#283) --- src/client/qianwen.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs index 022e286..5b8755f 100644 --- a/src/client/qianwen.rs +++ b/src/client/qianwen.rs @@ -246,7 +246,7 @@ fn build_body(data: SendData, model: String, is_vl: bool) -> Result<(Value, bool Ok((body, has_upload)) } -/// Patch messsages, upload emebeded images to oss +/// Patch messsages, upload embedded images to oss async fn patch_messages(model: &str, api_key: &str, messages: &mut Vec) -> Result<()> { for message in messages { if let MessageContent::Array(list) = message.content.borrow_mut() { @@ -258,7 +258,7 @@ async fn patch_messages(model: &str, api_key: &str, messages: &mut Vec) if url.starts_with("data:") { *url = upload(model, api_key, url) .await - .with_context(|| "Failed to upload embeded image to oss")?; + .with_context(|| "Failed to upload embedded image to oss")?; } } } -- cgit v1.2.3