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

支持transformers.js和ollama #2111

Open
suhli opened this issue Sep 9, 2024 · 2 comments
Open

支持transformers.js和ollama #2111

suhli opened this issue Sep 9, 2024 · 2 comments

Comments

@suhli
Copy link

suhli commented Sep 9, 2024

没有这个功能(改进)的时候,你遇到了什么问题?
设置本地运行的翻译模型

你想要如何解决你的问题?
直接使用transformers.js或ollama的api配置

如果想要的解决方案无法实现,你觉得还有什么办法你是可以接受的?

补充信息

@lmk123
Copy link
Member

lmk123 commented Oct 8, 2024

transformers.js 带有一个约 10MB 的 wasm,而且模型还需要另外通过网络下载,关键是模型非常非常大。综上所述,集成进划词翻译体验会很差,所以还是算了。

ollama 会支持的。

@lmk123 lmk123 added this to the 优先级 P2 milestone Oct 8, 2024
@myg133
Copy link

myg133 commented Nov 11, 2024

ollama本地运行了一个模型,第三方服务里的 chatgpt 配置项中,设置了本地的ollama的openai适配的地址。
curl 调用正常。 翻译工具报错403。
有没有解决的办法?

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

No branches or pull requests

3 participants