refactor(proxy): remove DeepSeek max_tokens clamp from transform layer

The max_tokens restriction was too aggressive and should be handled
upstream or by the provider itself. Simplify anthropic_to_openai by
removing provider parameter since model mapping is already done by
proxy::model_mapper.
This commit is contained in:
Jason
2026-01-30 16:30:36 +08:00
parent 78e341ccb9
commit 1ed122a8bd
2 changed files with 12 additions and 102 deletions
+2 -2
View File
@@ -305,9 +305,9 @@ impl ProviderAdapter for ClaudeAdapter {
fn transform_request(
&self,
body: serde_json::Value,
provider: &Provider,
_provider: &Provider,
) -> Result<serde_json::Value, ProxyError> {
super::transform::anthropic_to_openai(body, provider)
super::transform::anthropic_to_openai(body)
}
fn transform_response(&self, body: serde_json::Value) -> Result<serde_json::Value, ProxyError> {