一个使用智谱的简单翻译网页,集成token签发能力
建议环境
- Node.js 20+
- npm 10+
- pnpm 9+ (可选)
- 克隆此项目
git clone https://github.com/xiaotian2333/simple-translation.git
cd simple-translation- 安装依赖
npm install # or pnpm install- 构建
npm run build # or pnpm build- 启动
npm run start # or pnpm start整个git项目上传,设置环境变量API_KEY为智谱key即可
或直接fork此项目
访问 http://localhost:7860/ 即可使用