bibibi12345 commited on
Commit
4dd7d6a
·
1 Parent(s): 548c505

tentative tool call support

Browse files
Files changed (1) hide show
  1. app/api_helpers.py +4 -1
app/api_helpers.py CHANGED
@@ -444,4 +444,7 @@ async def execute_gemini_call(
444
  else:
445
  error_details += f"Response type: {type(response_obj_call).__name__}"
446
  raise ValueError(error_details)
447
- return JSONResponse(content=convert_to_openai_format(response_obj_call, request_obj.model))
 
 
 
 
444
  else:
445
  error_details += f"Response type: {type(response_obj_call).__name__}"
446
  raise ValueError(error_details)
447
+
448
+ openai_response_content = convert_to_openai_format(response_obj_call, request_obj.model)
449
+ print(f"DEBUG: OpenAI formatted response content before JSONResponse: {openai_response_content}") # Kilo Code Added Log
450
+ return JSONResponse(content=openai_response_content)