MetaGLM/zhipuai-sdk-python-v4

support request_timeout?

yongzhuo opened this issue · 2 comments

support request_timeout?

I think some scene need it, when using stream, if the first token not reponse, I can close it quickly!

What to do with first token?

see readme

client = ZhipuAI(
timeout= httpx.Timeout(timeout=300.0, connect=8.0),
max_retries=3,
)

get