Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# 账户状态文件、目录或逗号分隔的多个路径
# Account state file, directory, or comma-separated paths
AISTUDIO_AUTH_STATES=auth

# 服务监听地址
# Service listen address
LISTEN_ADDR=127.0.0.1:2048

# 本地 API 认证密钥
# Local API authentication key
PROXY_API_KEY=

# setup 与未指定账户共同使用的 HTTPHTTPS SOCKS5 代理
# HTTP, HTTPS, or SOCKS5 proxy shared by setup and accounts without a dedicated proxy
PROXY=

# 单账户初始化超时
# Per-account initialization timeout
INIT_TIMEOUT=2m

# 普通请求最大执行时间
# Maximum execution time for standard requests
REQUEST_TIMEOUT=5m

# 常驻预热账户数
# Number of resident warmed accounts
WARM_WORKER_LIMIT=5

# 高峰期最多同时运行的 Worker 数
# Maximum concurrently running workers during peak load
MAX_ACTIVE_WORKERS=10

# 服务启动时同时预热的账户数
# Concurrently warmed accounts during service startup
WARM_STARTUP_CONCURRENCY=2

# 单账号同时处理的请求数
# Concurrently processed requests per account
PER_ACCOUNT_CONCURRENCY=2

# 账户选择策略:round-robin fill-first
# Account routing strategy: round-robin or fill-first
ROUTING_STRATEGY=round-robin

# WAA 预热是否使用临时对话
# Whether WAA warmup uses temporary chat
TEMPORARY_CHAT=false
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# 构建产物
# Build artifacts
*.exe
*.dll
*.so
*.dylib
/aistudio2api
/dist/

# 本地配置与运行状态
# Local configuration and runtime state
.env
/auth/
/runtime/
*.log

# 前端产物
# Frontend artifacts
/web/node_modules/
/internal/webui/dist/

# Go 工作区
# Go workspace
go.work

# 编辑器与系统文件
# Editor and system files
.vscode/
.idea/
.DS_Store
Expand Down
1 change: 0 additions & 1 deletion cmd/aistudio2api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/Mag1cFall/AIStudio2API/internal/app"
)

// main 执行 aistudio2api 命令入口
func main() {
os.Exit(app.Run(os.Args[1:]))
}
Loading