llamaindex集成两个模型回答超时
kunkun8866 opened this issue · comments
kunkun8866 commented
query_response = query_engine.query(query)这句代码运行一直返回 反复请求直到超时结束运行,请问是什么问题呢
kunkun8866 commented
报错信息是:raise APITimeoutError(request=request) from err
openai.APITimeoutError: Request timed out.
kunkun8866 commented
03/05/2024 16:42:02 - [INFO] -openai._base_client->>> Retrying request to /chat/completions in 0.859262 seconds
03/05/2024 16:42:23 - [INFO] -openai._base_client->>> Retrying request to /chat/completions in 1.629988 seconds
03/05/2024 16:42:46 - [INFO] -openai._base_client->>> Retrying request to /chat/completions in 3.447563 seconds
shenlei1020 commented
不清楚你遇到的问题,可以参考:
langchain-ai/langchain#16345
kunkun8866 commented
@shenlei1020 openai调用可以用代理网站的url和key吗