We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8269d1 commit 61943c1Copy full SHA for 61943c1
1 file changed
src/app/api/v1/openai.py
@@ -194,7 +194,7 @@ async def non_stream_vllm_response(
194
# Cache the request-response pair using the chat ID
195
chat_id = response_data.get("id")
196
if chat_id:
197
- response_sha256 = sha256(json.dumps(response_data)).hexdigest()
+ response_sha256 = sha256(json.dumps(response_data).encode("utf-8")).hexdigest()
198
cache.set_chat(
199
chat_id, json.dumps(sign_chat(f"{request_sha256}:{response_sha256}"))
200
)
0 commit comments