From 80978b3aec0e7f7a89d3ad671a9c0869c187be7c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 17 十月 2024 14:19:18 +0800
Subject: [PATCH] 解决知识问题不响应问题,解决解析错误问题
---
app/api/files.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/app/api/files.py b/app/api/files.py
index 401428a..5e2640b 100644
--- a/app/api/files.py
+++ b/app/api/files.py
@@ -35,7 +35,7 @@
bisheng_service = BishengService(base_url=settings.bisheng_base_url)
try:
token = get_bisheng_token(db, current_user.id)
- result = await bisheng_service.upload(token, file_content)
+ result = await bisheng_service.upload(token, file.filename, file_content)
except Exception as e:
raise HTTPException(status_code=500, detail=str(e))
return Response(code=200, msg="", data=result)
--
Gitblit v1.8.0