(session: SessionDep, chat_record_id: int)
| 288 | |
| 289 | |
| 290 | def get_chat_predict_data(session: SessionDep, chat_record_id: int): |
| 291 | stmt = select(ChatRecord.predict_data).where(and_(ChatRecord.id == chat_record_id)) |
| 292 | res = session.execute(stmt) |
| 293 | for row in res: |
| 294 | try: |
| 295 | return orjson.loads(row.predict_data) |
| 296 | except Exception: |
| 297 | pass |
| 298 | return {} |
| 299 | |
| 300 | |
| 301 | def get_chat_with_records_with_data(session: SessionDep, chart_id: int, current_user: CurrentUser, |
no outgoing calls
no test coverage detected