Skip to content

Commit 412972f

Browse files
author
Paweł Kędzia
committed
Fix #10
Handle string payloads in `endpoint_i` by returning them unchanged.
1 parent 08883d3 commit 412972f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llm_router_api/endpoints/endpoint_i.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,9 @@ def _clear_payload(payload: Dict[str, Any]):
11211121
Dict[str, Any]
11221122
The payload with internal keys removed.
11231123
"""
1124+
if type(payload) is str:
1125+
return payload
1126+
11241127
for k in CLEAR_PREDEFINED_PARAMS:
11251128
payload.pop(k, None)
11261129
# If stream param is not given, then set as False

0 commit comments

Comments
 (0)