OpenAI api流式打印思考推理过程
参考:
https://www.cnblogs.com/fane-owl/p/18694810
代码:
from openai import OpenAIclient = openai.Client(base_url=f"https://dash*****e-mode/v1", api_key="sk-1")# Use stream=True
参考:
https://www.cnblogs.com/fane-owl/p/18694810
代码:
from openai import OpenAIclient = openai.Client(base_url=f"https://dash*****e-mode/v1", api_key="sk-1")# Use stream=True