refactor(proxy): assign the fallback model on the fresh snapshot instead of building a dict literal

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-16 07:15:13 +00:00
parent 2b6184d768
commit 9faaf7f4d4

View file

@ -2113,7 +2113,8 @@ class ProxyBaseLLMRequestProcessing:
for fallback_model in fallback_models:
if fallback_model == original_model:
continue
self.data = {**independent_snapshot(pristine), "model": fallback_model}
self.data = independent_snapshot(pristine)
self.data["model"] = fallback_model
try:
return await self.common_processing_pre_call_logic(
request=request,