序
本文主要研究一下如何本地运行local-ai并通过langchain4j集成调用。
步骤
curl安装
curl https://localai.io/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21509 0 21509 0 0 45959 0 --:--:-- --:--:-- --:--:-- 45861
Downloading local-ai...
######################################################################## 100.0%
Installing local-ai to /usr/local/bin...
Creating local-ai user...
Adding current user to local-ai group...
Creating local-ai systemd service...
The LocalAI API is now available at 127.0.0.1:8080.
Install complete. Run "local-ai" from the command line.
[WARN] No NVIDIA/AMD GPU detected. LocalAI will run in CPU-only mode.
运行
local-ai
9:49AM INF env file found, loading environment variables from fil

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



