1 Star 1 Fork 3

孙先生/llmstack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run-llmstack.bat 793 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ajay Chintala 提交于 2023-08-27 21:12 . Fix env delimiter
@echo off
setlocal
rem set LLMSTACK_PORT and other environment variables
if exist .env (
for /F "delims== eol=# tokens=1,2" %%i in (.env) do set "%%i=%%j"
) else (
echo ".env file not found"
exit /B
)
start /B docker-compose up -d --pull always
:loop
rem make a curl request and store the output
for /F "delims=" %%i in ('curl -s -o NUL -w "%%{http_code}" http://localhost:%LLMSTACK_PORT%') do set "response=%%i"
rem if the output is not 200, sleep for 3 seconds then try again
if not "%response%"=="200" (
echo Waiting for LLMStack to be ready...
rem choice is used as a sleep function in Windows batch files
choice /T 3 /D Y /N > NUL
goto loop
)
echo LLMStack is ready!
rem open the web browser
start http://localhost:%LLMSTACK_PORT%
:end
endlocal
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/sx81918/llmstack.git
git@gitee.com:sx81918/llmstack.git
sx81918
llmstack
llmstack
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385