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

feat: 支持使用本地模型的能力 #172

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chaseFunny
Copy link

背景:可能用户没有cdn或者后端,希望使用本地的模型运行这个项目
实现:
添加额外的三个参数,实现使用本地模型的能力,这样就不需要cdn 地址,或者后端服务
| isLocalModel | boolearn | 见 demo.js | 是否开启使用本地模型,不声明就是使用远程 |
| modelsPath | string | 见 demo.js | 本地模型文件夹所在目录,设置本地后必须要设置 |
| modelListPath | string | 见 demo.js | 模型列表,如果不写,就约定为 modelsPath 下的 model_list.json 文件 |

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

Successfully merging this pull request may close these issues.

1 participant