?前言
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 /MWrite-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 -ForceWrite-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訪問接口測試
- 正式環境不要對外開放