This commit is contained in:
2025-08-20 07:39:53 +08:00
parent a503acdae2
commit 3644b6cf08
3 changed files with 6 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
import os
import json
import logging
import time
import os
from datetime import datetime, timedelta
import requests
import jwt
import requests
# 配置日志
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
@@ -12,13 +12,11 @@ log = logging.getLogger(__name__)
class KlCommon:
# 获取项目根目录路径
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../../..')).replace('\\', '/') + '/dsAi'
# 拼接相对路径
base_path = project_root + '/src/main/java/com/dsideal/aiSupport/Util/KeLing/Example/'
base_path = r'D:\dsWork\dsProject\dsLightRag\KeLing\Example'
ak = 'c992fd02624d4900a93ca3b6da03d9e9' # 填写access key
sk = 'b37f67a00eb44f9bb57e4d530c328e1d' # 填写secret key
ak = 'c992fd02624d4900a93ca3b6da03d9e9'
sk = 'b37f67a00eb44f9bb57e4d530c328e1d'
@staticmethod
def get_jwt():