jianchang512 / pyvideotrans

Translate the video from one language to another and add dubbing. 将视频从一种语言翻译为另一种语言,同时支持语音识别转录、语音合成、字幕翻译。
https://pyvideotrans.com
GNU General Public License v3.0
10.93k stars 1.23k forks source link

无法使用自建本地gpt的api来翻译 #268

Closed lin16303 closed 9 months ago

lin16303 commented 9 months ago

QQ图片20240228174213 通过类似这个链接,浏览器里的几个翻译软件包括chatgptbox,沉浸式翻译插件都能正常运作,但在本程序测试时,gpt后台也无反应。 http://localhost:1234/v1/chat/completions

lin16303 commented 9 months ago

测试了koboldcpp,lmstudio,text-generation-webui,这几个api都没反应

jianchang512 commented 9 months ago

不要带/api 确保ip:port/v1 和官方一致

lin16303 commented 9 months ago

用这个api格式短视频测通了,大家试一下

koboldcpp http://localhost:5001 lm studio http://localhost:1234 text-generation-webui http://localhost:5000/v1/chat/completions