better logging
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user