Skip to content

Commit c91fb1b

Browse files
committed
json 파싱 문제 수정
1 parent 6b337df commit c91fb1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/chatbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def chat_with_llm(datasets, custom_prompt=None):
292292
print_log(f'JSON: {result["json"]}')
293293
print_log(f'응답: {result["response"]}')
294294

295-
if custom_prompt != MEDICINE_NOTIFICATION_PROMPT:
295+
if custom_prompt != MEDICINE_NOTIFICATION_PROMPT and custom_prompt != INTENT_INFERENCE_PROMPT:
296296
json_data = safe_json_load(result["json"])
297297
if json_data is None:
298298
print_log("JSON이 None이므로 파싱 실패!", 'error')

0 commit comments

Comments
 (0)