mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 18:59:50 +08:00
use original request sources for endpoint conditions
This commit is contained in:
@@ -12,6 +12,7 @@ pub(crate) fn build_same_format_provider_request_body(
|
||||
mapped_model: &str,
|
||||
spec: LocalSameFormatProviderSpec,
|
||||
body_rules: Option<&Value>,
|
||||
request_headers: Option<&http::HeaderMap>,
|
||||
upstream_is_stream: bool,
|
||||
kiro_auth: Option<&crate::ai_serving::transport::kiro::KiroRequestAuth>,
|
||||
is_claude_code: bool,
|
||||
@@ -25,6 +26,7 @@ pub(crate) fn build_same_format_provider_request_body(
|
||||
source_model: body_json.get("model").and_then(Value::as_str),
|
||||
family: same_format_provider_family(spec.family),
|
||||
body_rules,
|
||||
request_headers,
|
||||
upstream_is_stream,
|
||||
kiro_auth_config: kiro_auth.map(|auth| &auth.auth_config),
|
||||
is_claude_code,
|
||||
|
||||
Reference in New Issue
Block a user