mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-02 18:47:27 +08:00
[Bugfix] Remove key sorting for guided_json parameter in OpenAi compatible Server (#3945)
This commit is contained in:
parent
e35397468f
commit
e4c4072c94
@ -91,7 +91,7 @@ def _get_guide_and_mode(
|
||||
json = request.guided_json
|
||||
if isinstance(json, dict):
|
||||
# turn dict into hashable string
|
||||
json = json_dumps(json, sort_keys=True)
|
||||
json = json_dumps(json)
|
||||
elif isinstance(json, BaseModel):
|
||||
# use pydantic signature so that different model classes
|
||||
# with the same fields will get hashed the same
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user