前言
deepseekAI助手。它具有聊天机器人功能,可以与用户进行自然语言交互,回答问题、提供建议和帮助解决问题。DeepSeek 的特点包括:
- 强大的语言理解能力:能够理解和生成自然语言,与用户进行流畅的对话。
- 多领域知识:涵盖科技、文化、历史等多个领域的知识,能够回答各种类型的问题。
- 持续学习:系统会不断学习和优化,提高回答的准确性和相关性。
- 安全隐私:注重用户数据的安全和隐私保护,遵守相关法律法规。
DeepSeek 旨在通过先进的人工智能技术,为用户提供高效、便捷的服务,提升工作和生活的效率。
创建一键部署deepseek自动化脚本
- ollama 命令文档,参考,参考2,参考3
- ollama download Windows,Linux,mac,所有下载
- deepseek Models 官网地址
- Chatbox 连接deepseek api工具,下载
- ollama 端口11434
- ollama 安装目录c:\Ollama
powershell 执行安装ollama
$drive="c:"
$Ollama_url="https://github.com/ollama/ollama/releases/download/v0.5.11/"
$Ollama_exe="OllamaSetup.exe"
$Ollama_new="Ollama"
$Ollama_port='11434'
Write-Host "Ollama system path" -ForegroundColor Green
$env:path += ";$drive\$Ollama"
setx /M OLLAMA_HOST "0.0.0.0"
setx /M OLLAMA_ORIGINS "*"
setx PATH $env:path /M
Write-Host "download Ollama" -ForegroundColor Green
Invoke-WebRequest -Uri $Ollama_url\$Ollama_exe -OutFile "$drive\$Ollama_exe"
Write-Host "install Ollama" -ForegroundColor Green
Start-Process -FilePath $drive\$Ollama_exe -ArgumentList {/S /DIR=$drive\$Ollama_new} -wait -PassThru
需要手动干预点击一下Install
powershell 执行下载deepseek模型
Write-Host "download deepseek model" -ForegroundColor Green
ollama run deepseek-r1:1.5b
powershell 执行重启ollama
Write-Host "ollama stop" -ForegroundColor Green
Get-Process ollama* | Stop-Process -Force
Write-Host "ollama start" -ForegroundColor Green
Start-Process "$drive\$Ollama_new\ollama app.exe"
powershell 执行防火墙允许ollama 端口
Write-Host "firewall ollama port" -ForegroundColor Green
New-NetFirewallRule -DisplayName "$Ollama_new" -Direction Outbound -profile any -LocalPort $Ollama_port -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "$Ollama_new" -Direction Inbound -profile any -LocalPort $Ollama_port -Protocol TCP -Action Allow
chatbox 连接deepseek
- chatbox 下载,有很多的你也可以尝试使用其它的方式接入
- 模型提供方ollama api
- api 域名你的主机IP和端口
- 模型,你部署的模型选择
ollama api访问接口测试
- 正式环境不要对外开放