Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
a35d67d
1
Parent(s):
c643b5b
bugfix: 某些依赖版本可能出现类型错误 #865
Browse files- modules/models/models.py +1 -1
modules/models/models.py
CHANGED
@@ -208,7 +208,7 @@ class OpenAIClient(BaseLLMModel):
|
|
208 |
chunk_length = len(chunk)
|
209 |
try:
|
210 |
chunk = json.loads(chunk[6:])
|
211 |
-
except
|
212 |
print(i18n("JSON解析错误,收到的内容: ") + f"{chunk}")
|
213 |
error_msg += chunk
|
214 |
continue
|
|
|
208 |
chunk_length = len(chunk)
|
209 |
try:
|
210 |
chunk = json.loads(chunk[6:])
|
211 |
+
except:
|
212 |
print(i18n("JSON解析错误,收到的内容: ") + f"{chunk}")
|
213 |
error_msg += chunk
|
214 |
continue
|