Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.37。Github源。设置本地ollama接口出现报错:VideoTrans - ERROR - 字幕翻译失败,Client.__init__() got an unexpected keyword argument 'proxies'。在更改httpx库的版本后,报出新问题:[LocalLLM]:连接服务失败无法连接当前AP:http:/127.0.0.1:11434 connection error #672

Open
BY9267 opened this issue Dec 16, 2024 · 7 comments

Comments

@BY9267
Copy link

BY9267 commented Dec 16, 2024

P_1
P_2
连接本地api报错

环境变量如下
P_3

开不开梯子都一样。

@jianchang512
Copy link
Owner

  1. 左上角版本号数字
  2. 源码部署还是预打包版

@BY9267 BY9267 changed the title 设置本地ollama接口出现报错:2024-12-16 22:55:29,670 - VideoTrans - ERROR - 字幕翻译失败,Client.__init__() got an unexpected keyword argument 'proxies' v3.37。Github源。设置本地ollama接口出现报错:2024-12-16 22:55:29,670 - VideoTrans - ERROR - 字幕翻译失败,Client.__init__() got an unexpected keyword argument 'proxies' Dec 17, 2024
@BY9267
Copy link
Author

BY9267 commented Dec 17, 2024

image
没太接触过 计算机网络 方面的东西。整不明白。具体版本是这个。

@BY9267
Copy link
Author

BY9267 commented Dec 17, 2024

pip install httpx==0.27.0

目前来说,在venv环境下,安装这个库的这个版本,似乎是解决了问题。(不要装最新版本,最新28似乎也报错!)

具体还没细看,如果有没有后续就大抵是解决了。也说不定,反正就先这样了。

@BY9267
Copy link
Author

BY9267 commented Dec 17, 2024

image
出现了新问题,直接404了

@BY9267

This comment was marked as outdated.

@BY9267
Copy link
Author

BY9267 commented Dec 17, 2024

image 过段时间,就变成无法访问了,忘记调了什么了

就是用127就会是connect问题,用local将会是404问题

然后chatbox、openwebui、沉浸式翻译的插件。这个接口都是没有问题的。

@BY9267 BY9267 changed the title v3.37。Github源。设置本地ollama接口出现报错:2024-12-16 22:55:29,670 - VideoTrans - ERROR - 字幕翻译失败,Client.__init__() got an unexpected keyword argument 'proxies' v3.37。Github源。设置本地ollama接口出现报错:VideoTrans - ERROR - 字幕翻译失败,Client.__init__() got an unexpected keyword argument 'proxies'。在更改httpx库的版本后,报出新问题:[LocalLLM]:连接服务失败无法连接当前AP:http:/127.0.0.1:11434 connection error Dec 17, 2024
@jianchang512
Copy link
Owner

httpx直接安装最新版即可,不需要指定版本,有兼容问题

api后需要加 /v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants