From 996c0338adffa316c18de974b2405e8a10ca67d7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:35:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/routes/inference.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/studio/backend/routes/inference.py b/studio/backend/routes/inference.py index a71fd1b8cc..8107e2d101 100644 --- a/studio/backend/routes/inference.py +++ b/studio/backend/routes/inference.py @@ -1137,7 +1137,7 @@ async def openai_chat_completions( # Pre-compute static JSON envelope for content tokens (hot path). # Must match model_dump_json(exclude_none=True): no finish_reason when null. _chunk_prefix = f'{{"id":"{completion_id}","object":"chat.completion.chunk","created":{created},"model":{json.dumps(model_name)},"choices":[{{"index":0,"delta":{{"content":' - _chunk_suffix = '}}]}' + _chunk_suffix = "}}]}" gen = gguf_generate_with_tools() prev_text = "" @@ -1275,7 +1275,7 @@ async def openai_chat_completions( # Pre-compute static JSON envelope for content tokens (hot path). # Must match model_dump_json(exclude_none=True): no finish_reason when null. _chunk_prefix = f'{{"id":"{completion_id}","object":"chat.completion.chunk","created":{created},"model":{json.dumps(model_name)},"choices":[{{"index":0,"delta":{{"content":' - _chunk_suffix = '}}]}' + _chunk_suffix = "}}]}" gen = gguf_generate() prev_text = "" @@ -1474,7 +1474,7 @@ async def openai_chat_completions( # Pre-compute static JSON envelope for content tokens (hot path). # Must match model_dump_json(exclude_none=True): no finish_reason when null. _chunk_prefix = f'{{"id":"{completion_id}","object":"chat.completion.chunk","created":{created},"model":{json.dumps(model_name)},"choices":[{{"index":0,"delta":{{"content":' - _chunk_suffix = '}}]}' + _chunk_suffix = "}}]}" gen = generate() _disconnect_check_interval = 20