fix(router): Update prompt prefix keys to include 'system' for improved request handling

This commit is contained in:
DragonAssassin-one 2026-05-11 11:29:56 +08:00
parent 06e29f15c8
commit 3dc2ada2b3

View file

@ -80,7 +80,7 @@ class PromptPrefixAffinityCheck(CustomLogger):
) -> Optional[str]:
prompt_parts: List[Tuple[str, Any]] = []
for key in ("instructions", "tools"):
for key in ("system", "instructions", "tools"):
value = request_kwargs.get(key)
if value is not None:
prompt_parts.append((key, cls._json_safe(value)))