Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Mag1cFall
AIStudio2API
Repository navigation
Code
Issues
2
(2)
Pull requests
3
(3)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
AIStudio2API
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
64 lines (44 loc) · 1.85 KB
main
Breadcrumbs
AIStudio2API
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
64 lines (44 loc) · 1.85 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 账户状态文件、目录或逗号分隔的多个路径
AISTUDIO_AUTH_STATES=auth
# 服务监听地址
LISTEN_ADDR=127.0.0.1:2048
# 本地 API 认证密钥,多个 key 用逗号分隔
PROXY_API_KEY=
# 管理程序启动后自动启动生成服务,修改后重启程序生效
AUTO_START=false
# 保存公开 API 的 POST 请求与响应正文,各截断到 64 KiB,只保留最近 1000 条,保存后立即生效
REQUEST_BODY_LOG=false
# 同时把服务日志写入 runtime/logs/,单文件 10 MB 轮转,保存后立即生效
LOG_FILE=true
# 日志目录总量上限(MB),超出时删除最旧的文件,不小于 20
LOG_MAX_TOTAL_MB=500
# 管理控制台登录,修改后重启程序生效
ADMIN_AUTH_ENABLED=false
ADMIN_USERNAME=admin
ADMIN_PASSWORD=
# setup 与未指定账户共同使用的 HTTP、HTTPS 或 SOCKS5 代理,多个代理用逗号分隔组成代理池
PROXY=
# 单账户初始化超时
INIT_TIMEOUT=2m
# 普通请求最大执行时间
REQUEST_TIMEOUT=30m
# 常驻预热账户数
WARM_WORKER_LIMIT=5
# 高峰期最多同时运行的 Worker 数
MAX_ACTIVE_WORKERS=10
# 同时冷启动的 Camoufox Worker 数,预热与按需扩容共用;WAA_BACKEND=go 时不限制
WARM_STARTUP_CONCURRENCY=5
# 单账号同时处理的请求数
PER_ACCOUNT_CONCURRENCY=2
# 账户选择策略:round-robin 或 fill-first
ROUTING_STRATEGY=round-robin
# 生成请求使用的上游通道:playground、build,逗号分隔
UPSTREAM_CHANNELS=playground,build
# 客户端模型名到目录模型 ID 的映射,每项写成 别名:模型 ID,逗号分隔多项
MODEL_MAPPING=
# 非流式请求先使用 Build 原生单次调用,不可用时回退流式并记录原因
BUILD_NATIVE_NONSTREAM=true
# WAA 后端:camoufox 使用 Camoufox 页面,go 在服务进程内运行
WAA_BACKEND=camoufox
# WAA 预热是否使用临时对话
TEMPORARY_CHAT=false
You can’t perform that action at this time.