소스 검색

Update api_server: add debug log

StrayWarrior 3 일 전
부모
커밋
c922c86a7a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      api_server.py

+ 1 - 0
api_server.py

@@ -199,6 +199,7 @@ def run_openai_chat(messages, model_name, **kwargs):
         raise Exception('model not supported')
     response = llm_client.chat.completions.create(
         messages=messages, model=model_name, **kwargs)
+    logger.debug(response)
     return response
 
 def run_extractor_prompt(req_data):