MetaGLM / zhipuai-sdk-python-v4

MIT License
163 stars 20 forks source link

support request_timeout? #40

Closed yongzhuo closed 3 months ago

yongzhuo commented 3 months ago

support request_timeout?

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

glide-the commented 3 months ago

What to do with first token?

see readme

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

yongzhuo commented 3 months ago

get