mirror of
https://github.com/Yanyutin753/RefreshToV1Api.git
synced 2025-12-20 01:03:02 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba1616309b | ||
|
|
de7d645533 | ||
|
|
3b4f0d453f |
6
main.py
6
main.py
@@ -327,9 +327,9 @@ scheduler.start()
|
||||
# PANDORA_UPLOAD_URL = 'files.pandoranext.com'
|
||||
|
||||
|
||||
VERSION = '0.8.1'
|
||||
VERSION = '0.8.2'
|
||||
# VERSION = 'test'
|
||||
UPDATE_INFO = '👀 支持输出o1思考过程'
|
||||
UPDATE_INFO = '🥳 修复data:结尾代码输出出现异常问题'
|
||||
# UPDATE_INFO = '【仅供临时测试使用】 '
|
||||
|
||||
with app.app_context():
|
||||
@@ -1301,7 +1301,7 @@ def data_fetcher(upstream_response, data_queue, stop_event, last_data_time, api_
|
||||
end_index = buffer.index('\n\n') + 2
|
||||
complete_data, buffer = buffer[:end_index], buffer[end_index:]
|
||||
try:
|
||||
data_content = complete_data.replace('data: ', '').strip()
|
||||
data_content = re.sub(r'^data:\s*', '', complete_data).strip()
|
||||
if not data_content:
|
||||
continue
|
||||
data_json = json.loads(data_content)
|
||||
|
||||
Reference in New Issue
Block a user