zhangqian
2024-11-22 165d75b97916335ec7b5046f7c476e494a12df51
Merge branch 'master' of http://192.168.5.5:10010/r/rag-gateway
2个文件已修改
4 ■■■■ 已修改文件
app/api/agent.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/service/basic.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/api/agent.py
@@ -60,7 +60,7 @@
    elif agent.agent_type == AgentType.BASIC:
        offset = (page - 1) * limit
        records = db.query(SessionModel).filter(SessionModel.agent_id == agent_id, SessionModel.tenant_id==current_user.id).offset(offset).limit(limit).all()
        records = db.query(SessionModel).filter(SessionModel.agent_id == agent_id, SessionModel.tenant_id==current_user.id).order_by(SessionModel.create_date.desc()).offset(offset).limit(limit).all()
        result = [item.to_dict() for item in records]
        return ResponseList(code=200, msg="", data=result)
app/service/basic.py
@@ -102,7 +102,7 @@
    async def questions_talk_word_download(self, file_id: str):
        url = f"{self.base_url}/questions/download/word"
        return await self.download_from_url(url, params={'excel_name': file_id})
        return await self.download_from_url(url, params={'word_name': file_id})
def process_buffer(data, buffer):