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

Function _return_empty

backend/apps/chat/api/chat.py:223–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221async def ask_recommend_questions(session: SessionDep, current_user: CurrentUser, chat_record_id: int,
222 current_assistant: CurrentAssistant, articles_number: Optional[int] = 4):
223 def _return_empty():
224 yield 'data:' + orjson.dumps({'content': '[]', 'type': 'recommended_question'}).decode() + '\n\n'
225
226 try:
227 record = get_chat_record_by_id(session, chat_record_id)

Callers 1

ask_recommend_questionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected