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 }}
aurora-develop
aurora
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
aurora
/
env.template
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
52 lines (41 loc) · 1.83 KB
main
Breadcrumbs
aurora
/
env.template
Copy path
Top
File metadata and controls
Code
Blame
52 lines (41 loc) · 1.83 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
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
PORT=8080
FREE_ACCOUNTS=true
FREE_ACCOUNTS_NUM=1024
Authorization=
TLS_CERT=
TLS_KEY=
PROXY_URL=
http_proxy=
# 转发代理(可选,给 backend-api / files 端点单独配置)
API_REVERSE_PROXY=
FILES_REVERSE_PROXY=
# 自定义 BASE_URL(默认 https://chatgpt.com/backend-api)
BASE_URL=
# 流式响应开关;设为 "false" 强制返回完整响应
STREAM_MODE=true
# 是否在请求中保留历史上下文;设为 "true" 启用
ENABLE_HISTORY=false
# MAX_CONTINUE_COUNT: 模型因 max_tokens 停止时,自动 continue 的最大轮数。
# 默认 3;设为 0 可关闭自动 continue(遇到长度限制立即停止,不再续写)。
MAX_CONTINUE_COUNT=3
# DEBUG_SSE: 设为 "true" 时,在控制台打印每个 SSE chunk 的解析日志,
# 用于排查流式响应丢包/截断问题。生产建议留空。
# DEBUG_SSE=true
# ---------- 工具调用模拟(Tool Calling Emulation)----------
# ChatGPT Web 不原生支持 function calling。aurora 复刻 的
# <tool_call>{...}</tool_call> 文本协议:在 system prompt 中教模型按格式输出,
# 流式响应中实时切分出 tool_calls。
#
# TOOL_CALLING_ENABLED: 是否启用。默认 true(只要请求体里声明了 tools)。
# 设为 false / 0 / no 强制关闭(忽略 tools 字段)。
# 启用时强制 stream=false(sandbox 重试需要完整响应),返回非流式 ChatCompletion。
TOOL_CALLING_ENABLED=true
# REFUSAL_RETRIES: 模型陷入"sandbox 拒绝"循环时的最大重试次数。
# 每次重试会在末尾追加 _retrySuffix 提示模型立即输出 <tool_call> 块。
# 仅在工具调用模式生效;默认 3。
REFUSAL_RETRIES=3
# DEBUG_TOOL_LOG: 设为文件路径后,把每次工具解析的详细 trace 写入该文件
# (输入 text、解析结果、tool_calls 等)。调试用,生产建议留空。
# DEBUG_TOOL_LOG=tool_debug.log
You can’t perform that action at this time.