Update app.py
Browse files
app.py
CHANGED
@@ -532,9 +532,7 @@ class RaycastAPIService:
|
|
532 |
def send_request(cls, raycast_request):
|
533 |
headers = Config.get_raycast_headers()
|
534 |
headers['x-raycast-timestamp'] = str(UtilsHelper.get_current_timestamp())
|
535 |
-
|
536 |
-
print(f'发送到 Raycast: {json.dumps(raycast_request, indent=2, ensure_ascii=False)}')
|
537 |
-
|
538 |
response = requests.post(
|
539 |
Config.RAYCAST_CHAT_URL,
|
540 |
headers=headers,
|
@@ -553,8 +551,6 @@ class RaycastAPIService:
|
|
553 |
# ==================== 处理函数 ====================
|
554 |
def handle_chat_completion(request_data):
|
555 |
try:
|
556 |
-
print(f'收到请求: {json.dumps(request_data, indent=2, ensure_ascii=False)}')
|
557 |
-
|
558 |
# 转换请求格式
|
559 |
raycast_request = MessageConverter.convert_to_raycast_format(request_data)
|
560 |
|
|
|
532 |
def send_request(cls, raycast_request):
|
533 |
headers = Config.get_raycast_headers()
|
534 |
headers['x-raycast-timestamp'] = str(UtilsHelper.get_current_timestamp())
|
535 |
+
|
|
|
|
|
536 |
response = requests.post(
|
537 |
Config.RAYCAST_CHAT_URL,
|
538 |
headers=headers,
|
|
|
551 |
# ==================== 处理函数 ====================
|
552 |
def handle_chat_completion(request_data):
|
553 |
try:
|
|
|
|
|
554 |
# 转换请求格式
|
555 |
raycast_request = MessageConverter.convert_to_raycast_format(request_data)
|
556 |
|