File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
mcp_bridge/openai_clients Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2121from .utils import (
2222 call_tool ,
2323 chat_completion_add_tools ,
24- validate_if_json_object_parsable ,
24+ json_pretty_print ,
2525 salvage_parsable_json_object ,
26+ validate_if_json_object_parsable ,
2627)
2728from mcp_bridge .models import SSEData , upstream_error
2829from mcp_bridge .http_clients import get_client
@@ -77,7 +78,7 @@ async def chat_completions(request: CreateChatCompletionRequest):
7778 # exclude_defaults=True, exclude_none=True, exclude_unset=True
7879 # )
7980
80- json_data = json . dumps (chat_completion_requester (request ), indent = 4 , ensure_ascii = False )
81+ json_data = json_pretty_print (chat_completion_requester (request ))
8182
8283 logger .debug ("Request JSON:\n %s" % json_data )
8384
You can’t perform that action at this time.
0 commit comments