You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/10/23 05:36:46 UTC
(maka) branch feat/native-provider-protocols updated: fix(providers): preserve original image detail in chat requests
This is an automated email from the ASF dual-hosted git repository.
M4n5ter pushed a commit to branch feat/native-provider-protocols
in repository https://gitbox.apache.org/repos/asf/maka.git
The following commit(s) were added to refs/heads/feat/native-provider-protocols by this push:
new a5be19e826 fix(providers): preserve original image detail in chat requests
a5be19e826 is described below
commit a5be19e826165d8a61a405b83c1b96f3c3e0846a
Author: Wang <m4...@gmail.com>
AuthorDate: Fri Oct 23 13:36:40 2026 +0800
fix(providers): preserve original image detail in chat requests
Generated-by: Codex
---
.../provider-protocol/src/chat_completions/request/prompt.rs | 1 +
plugins/agent/provider-protocol/src/chat_completions/tests.rs | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/plugins/agent/provider-protocol/src/chat_completions/request/prompt.rs b/plugins/agent/provider-protocol/src/chat_completions/request/prompt.rs
index a2e57886cc..fe47cb993d 100644
--- a/plugins/agent/provider-protocol/src/chat_completions/request/prompt.rs
+++ b/plugins/agent/provider-protocol/src/chat_completions/request/prompt.rs
@@ -59,6 +59,7 @@ enum ImageDetail {
Auto,
Low,
High,
+ Original,
}
#[derive(Serialize)]
struct Url {
diff --git a/plugins/agent/provider-protocol/src/chat_completions/tests.rs b/plugins/agent/provider-protocol/src/chat_completions/tests.rs
index 4f06829228..17fbe7ce52 100644
--- a/plugins/agent/provider-protocol/src/chat_completions/tests.rs
+++ b/plugins/agent/provider-protocol/src/chat_completions/tests.rs
@@ -201,7 +201,13 @@ fn image_detail_survives_wire_encoding_without_affecting_video() {
metadata_namespace: "vendor".into(),
multipart_tool_content: false,
};
- for detail in [None, Some("auto"), Some("low"), Some("high")] {
+ for detail in [
+ None,
+ Some("auto"),
+ Some("low"),
+ Some("high"),
+ Some("original"),
+ ] {
let image = File {
media_type: "image/png".into(),
filename: None,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org