title | emoji | colorFrom | colorTo | sdk | pinned | app_port | license | short_description |
---|---|---|---|---|---|---|---|---|
DeepSite |
🐳 |
blue |
blue |
docker |
true |
5173 |
mit |
Imagine and Share in 1-Click |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
将本项目移植到本地运行,运行方式:
下载源代码
git clone https://github.com/skywalk163/deepsite
进入目录deepsite
cd deepsite
执行安装
npm install
执行build
npm run build
然后npm start就行了
npm start
启动后浏览器访问:http://127.0.0.1:3000/
注意需要修改server.js文件源代码,替换成自己的llm大模型url和key,当前设置的是
const openai = new OpenAI({
baseURL: 'http://192.168.1.5:1337/v1',
apiKey: 'your-api-key', // 如果需要认证
});
模型名字也需要修改:
async function chatCompletionStream(prompt) {
const stream = await openai.chat.completions.create({
model: 'deepseek-v3', // 你的模型名称
messages: [{ role: 'user', content: prompt }],
stream: true,
});