wxywb / history_rag

841 stars 109 forks source link

下载本地模型后依旧报错Connection error. OSError: [Errno 101] Network is unreachable #54

Open von-eureka opened 7 months ago

von-eureka commented 7 months ago

发生异常: APIConnectionError Connection error. OSError: [Errno 101] Network is unreachable During handling of the above exception, another exception occurred: httpcore.ConnectError: [Errno 101] Network is unreachable The above exception was the direct cause of the following exception: httpx.ConnectError: [Errno 101] Network is unreachable During handling of the above exception, another exception occurred: OSError: [Errno 101] Network is unreachable During handling of the above exception, another exception occurred: httpcore.ConnectError: [Errno 101] Network is unreachable The above exception was the direct cause of the following exception: httpx.ConnectError: [Errno 101] Network is unreachable During handling of the above exception, another exception occurred: OSError: [Errno 101] Network is unreachable During handling of the above exception, another exception occurred: httpcore.ConnectError: [Errno 101] Network is unreachable The above exception was the direct cause of the following exception: httpx.ConnectError: [Errno 101] Network is unreachable During handling of the above exception, another exception occurred: OSError: [Errno 101] Network is unreachable During handling of the above exception, another exception occurred: httpcore.ConnectError: [Errno 101] Network is unreachable The above exception was the direct cause of the following exception: httpx.ConnectError: [Errno 101] Network is unreachable The above exception was the direct cause of the following exception: File "/home/ureka/history_rag-master/executor.py", line 241, in query response = self.query_engine.query(question) File "/home/ureka/history_rag-master/cli.py", line 89, in query ans = self._executor.query(question) File "/home/ureka/history_rag-master/cli.py", line 112, in question_answer self.query(question) File "/home/ureka/history_rag-master/cli.py", line 77, in parse_input self.question_answer() File "/home/ureka/history_rag-master/cli.py", line 56, in run self.parse_input(command_text) File "/home/ureka/history_rag-master/cli.py", line 123, in cli.run() openai.APIConnectionError: Connection error.

wxywb commented 7 months ago

这个似乎是一个网络问题,无法连接到openai?

von-eureka commented 7 months ago

我下了本地模型,也不行......而且我试了下我用其他api调用key也是没问题的。

wxywb commented 7 months ago

你有用什么config吗?你用这个默认的代码成功过吗?你的key是openai官方的还是买的中转站什么的?

von-eureka commented 7 months ago

没有......我的key是官方的,同样的key我用在OpenAI Translator上也没有问题......当然是挂了梯子的情况下。

jia-fie commented 4 months ago

楼主问题解决了么?我的也是这个问题,已经困扰我两天了,可以分享一下思路么