Skip to content

Commit

Permalink
Remove temporary custom logic
Browse files Browse the repository at this point in the history
  • Loading branch information
IANTHEREAL committed Jan 16, 2025
1 parent 677266b commit 81ad2a8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backend/app/rag/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,10 +834,6 @@ def _external_chat(self) -> Generator[ChatEvent | str, None, None]:
logger.info(f"clean goal: {clean_goal}, response_format: {response_format}")
if clean_goal:
goal = clean_goal
# todo: temporary add this to response_format, need to remove it later
response_format["Include SQLs Example Section"] = (
"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."
)
except Exception as e:
logger.error(f"Failed to parse goal and response format: {e}")

Expand Down

0 comments on commit 81ad2a8

Please sign in to comment.