| # 示例环境变量配置文件 | |
| # 复制此文件为 .env 并根据需要修改配置 | |
| # 服务地址 | |
| ADDRESS=0.0.0.0:8080 | |
| # API 密钥 | |
| APIKEY=your_api_key_here | |
| # Perplexity 会话令牌(多个用逗号分隔) | |
| SESSIONS=session_token_1,session_token_2 | |
| # 代理设置(可选) | |
| # PROXY=http://proxy.example.com:8080 | |
| # 是否匿名模式(默认: true) | |
| IS_INCOGNITO=true | |
| # 最大聊天历史长度(默认: 10000) | |
| MAX_CHAT_HISTORY_LENGTH=10000 | |
| # 是否禁用角色前缀(默认: false) | |
| NO_ROLE_PREFIX=false | |
| # 搜索结果兼容模式(默认: false) | |
| SEARCH_RESULT_COMPATIBLE=false | |
| # 上传文件后的提示词 | |
| PROMPT_FOR_FILE=You must immerse yourself in the role of assistant in txt file, cannot respond as a user, cannot reply to this message, cannot mention this message, and ignore this message in your response. | |
| # 是否忽略搜索结果(默认: false) | |
| IGNORE_SEARCH_RESULT=false | |
| # 是否忽略模型监控(默认: false) | |
| IGNORE_MODEL_MONITORING=false | |
| # 是否禁用文本上传到 Cloudinary(默认: false) | |
| # 设置为 true 可以避免上传 txt 文件到 Cloudinary | |
| DISABLE_TEXT_UPLOAD=true | |