fix: 被禁言导致发送线程死掉,修复所有的压缩,修复空日程的key error
This commit is contained in:
@@ -124,6 +124,7 @@ class LLM_request:
|
||||
base_wait_time = 15
|
||||
|
||||
current_image_base64 = image_base64
|
||||
current_image_base64 = compress_base64_image_by_scale(current_image_base64)
|
||||
|
||||
|
||||
for retry in range(max_retries):
|
||||
@@ -177,6 +178,8 @@ class LLM_request:
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
|
||||
image_base64=compress_base64_image_by_scale(image_base64)
|
||||
|
||||
# 构建请求体
|
||||
data = {
|
||||
"model": self.model_name,
|
||||
|
||||
Reference in New Issue
Block a user