zhaoqingang
2025-04-01 b2e47e75a231baf5a7beca476256ab3d94e76c46
code加密
4个文件已修改
7 ■■■■ 已修改文件
app/api/agent.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/api/auth.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/api/files.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/service/auth.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/api/agent.py
@@ -18,7 +18,7 @@
from app.service.dialog import get_session_history
from app.service.ragflow import RagflowService
from app.service.service_token import get_ragflow_token, get_bisheng_token
from app.task.fetch_agent import initialize_agents
# from app.task.fetch_agent import initialize_agents
router = APIRouter()
app/api/auth.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import json
from fastapi import APIRouter, Depends
app/api/files.py
@@ -138,6 +138,8 @@
                    return Response(code=400, msg=str(e))
                try:
                    file_upload = await dify_service.upload(token, f.filename, file_content, current_user.id)
                    if not file_upload:
                        raise HTTPException(status_code=500, detail="上传文件出错")
                    try:
                        tokens = await read_file(file_content, f.filename, f.content_type)
                        file_upload["tokens"] = tokens
app/service/auth.py
@@ -1,4 +1,4 @@
import os.path
import os.path
import re
import uuid
import base64