MCPcopy Index your code
hub / github.com/dataease/SQLBot / sql_user_question

Method sql_user_question

backend/apps/chat/models/chat_model.py:278–285  ·  view source on GitHub ↗
(self, current_time: str, change_title: bool)

Source from the content-addressed store, hash-verified

276 return templates
277
278 def sql_user_question(self, current_time: str, change_title: bool):
279 _question = self.question
280 if self.regenerate_record_id:
281 _question = get_sql_template()['regenerate_hint'] + self.question
282 return get_sql_template()['user'].format(lang=self.lang, engine=self.engine, schema=self.db_schema,
283 question=_question,
284 rule=self.rule, current_time=current_time, error_msg=self.error_msg,
285 change_title=change_title)
286
287 def chart_sys_question(self):
288 templates: dict[str, str] = {

Callers 1

generate_sqlMethod · 0.80

Calls 2

get_sql_templateFunction · 0.90
formatMethod · 0.80

Tested by

no test coverage detected