Skip to content

Commit 81ad2a8

Browse files
committed
Remove temporary custom logic
1 parent 677266b commit 81ad2a8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

backend/app/rag/chat.py

-4
Original file line numberDiff line numberDiff line change
@@ -834,10 +834,6 @@ def _external_chat(self) -> Generator[ChatEvent | str, None, None]:
834834
logger.info(f"clean goal: {clean_goal}, response_format: {response_format}")
835835
if clean_goal:
836836
goal = clean_goal
837-
# todo: temporary add this to response_format, need to remove it later
838-
response_format["Include SQLs Example Section"] = (
839-
"If (and only if) the answer contains SQL operations, please feel free to provide a example section at the end of the answer, which can provide better understanding for the user."
840-
)
841837
except Exception as e:
842838
logger.error(f"Failed to parse goal and response format: {e}")
843839

0 commit comments

Comments
 (0)