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

cloudflareWorkers 翻译API搭建教程代码失效 #405

Closed
CirnoSalt opened this issue May 20, 2024 · 2 comments
Closed

cloudflareWorkers 翻译API搭建教程代码失效 #405

CirnoSalt opened this issue May 20, 2024 · 2 comments

Comments

@CirnoSalt
Copy link

第一行:import { Ai } from '@cf/meta/m2m100-1.2b/ai.js';
编辑器报错:
Uncaught Error: No such module "@cf/meta/m2m100-1.2b/ai.js". imported from "index.js" (Code: 10021)
屏幕截图 2024-05-21 003857

@death4444
Copy link

散了吧兄弟,CF已经改了规则,这个方法失效了。
白嫖党太多了。

@jianchang512
Copy link
Owner

之前是免费beta版,现在要收费了,代码结构也有所调整
image

重新查看这个教程 https://github.com/jianchang512/translate-api

更好的方法是在cf上代理 google翻译api,教程见 https://juejin.cn/post/7384632027230519330

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

3 participants