mirror of
https://github.com/Yanyutin753/RefreshToV1Api.git
synced 2025-10-14 23:22:42 +00:00
[feat] 优化沙箱文件下载失败提示
This commit is contained in:
2
main.py
2
main.py
@@ -889,6 +889,8 @@ def replace_sandbox(text, conversation_id, message_id, api_key):
|
||||
def replace_match(match):
|
||||
sandbox_path = match.group(1)
|
||||
download_url = get_download_url(conversation_id, message_id, sandbox_path)
|
||||
if download_url == None:
|
||||
return "\n```\nError: 沙箱文件下载失败,这可能是因为您启用了隐私模式\n```"
|
||||
file_name = extract_filename(download_url)
|
||||
timestamped_file_name = timestamp_filename(file_name)
|
||||
if USE_OAIUSERCONTENT_URL == False:
|
||||
|
Reference in New Issue
Block a user