-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_llm_config.bat
More file actions
44 lines (37 loc) · 1.04 KB
/
test_llm_config.bat
File metadata and controls
44 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
REM AstrCode LLM 配置测试脚本
REM 用于快速测试不同的 LLM 提供商配置
echo ====================================
echo AstrCode LLM Configuration Test
echo ====================================
echo.
REM 检查二进制文件是否存在
if not exist "bin\astrcode-server.exe" (
echo Error: bin\astrcode-server.exe not found
echo Please run: go build -o bin/astrcode-server.exe ./cmd/server
pause
exit /b 1
)
echo Available LLM Providers:
echo 1. OpenAI (openai)
echo 2. Google Gemini (gemini)
echo 3. Anthropic Claude (claude)
echo.
set /p PROVIDER="Enter provider (openai/gemini/claude): "
set /p BASE_URL="Enter base URL: "
set /p API_KEY="Enter API Key: "
set /p MODEL="Enter model name: "
echo.
echo Starting AstrCode server with configuration:
echo Provider: %PROVIDER%
echo Base URL: %BASE_URL%
echo Model: %MODEL%
echo.
echo Press Ctrl+C to stop the server
echo.
bin\astrcode-server.exe ^
--llm-provider %PROVIDER% ^
--llm-url %BASE_URL% ^
--llm-key %API_KEY% ^
--llm-model %MODEL%
pause