better logging

This commit is contained in:
2025-11-07 20:07:49 +08:00
parent d30f9e67ff
commit 37303ce0f0

View File

@@ -80,7 +80,7 @@ def main():
u = delta u = delta
last_text = current_text last_text = current_text
print("from stream: ", u) logger.info(f"from stream: {u}")
except TypeError: except TypeError:
# 非流式回落(一次性返回) # 非流式回落(一次性返回)
if responses.status_code != HTTPStatus.OK: if responses.status_code != HTTPStatus.OK: