mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00

* Training status (#4424) * dataset data training state (#4311) * dataset data training state * fix * fix ts * fix * fix api format * fix * fix * perf: count training * format * fix: dataset training state (#4417) * fix * add test * fix * fix * fix test * fix test * perf: training count * count * loading status --------- Co-authored-by: heheer <heheer@sealos.io> * doc * website sync feature (#4429) * perf: introduce BullMQ for website sync (#4403) * perf: introduce BullMQ for website sync * feat: new redis module * fix: remove graceful shutdown * perf: improve UI in dataset detail - Updated the "change" icon SVG file. - Modified i18n strings. - Added new i18n string "immediate_sync". - Improved UI in dataset detail page, including button icons and background colors. * refactor: Add chunkSettings to DatasetSchema * perf: website sync ux * env template * fix: clean up website dataset when updating chunk settings (#4420) * perf: check setting updated * perf: worker currency * feat: init script for website sync refactor (#4425) * website feature doc --------- Co-authored-by: a.e. <49438478+I-Info@users.noreply.github.com> * pro migration (#4388) (#4433) * pro migration * reuse customPdfParseType Co-authored-by: gggaaallleee <91131304+gggaaallleee@users.noreply.github.com> * perf: remove loading ui * feat: config chat file expired time * Redis cache (#4436) * perf: add Redis cache for vector counting (#4432) * feat: cache * perf: get cache key --------- Co-authored-by: a.e. <49438478+I-Info@users.noreply.github.com> * perf: mobile voice input (#4437) * update:Mobile voice interaction (#4362) * Add files via upload * Add files via upload * Update ollama.md * Update ollama.md * Add files via upload * Update useSpeech.ts * Update ChatInput.tsx * Update useSpeech.ts * Update ChatInput.tsx * Update useSpeech.ts * Update constants.ts * Add files via upload * Update ChatInput.tsx * Update useSpeech.ts * Update useSpeech.ts * Update useSpeech.ts * Update ChatInput.tsx * Add files via upload * Update common.json * Update VoiceInput.tsx * Update ChatInput.tsx * Update VoiceInput.tsx * Update useSpeech.ts * Update useSpeech.ts * Update common.json * Update common.json * Update common.json * Update VoiceInput.tsx * Update VoiceInput.tsx * Update ChatInput.tsx * Update VoiceInput.tsx * Update ChatInput.tsx * Update VoiceInput.tsx * Update ChatInput.tsx * Update useSpeech.ts * Update common.json * Update chat.json * Update common.json * Update chat.json * Update common.json * Update chat.json * Update VoiceInput.tsx * Update ChatInput.tsx * Update useSpeech.ts * Update VoiceInput.tsx * speech ui * 优化语音输入组件,调整输入框显示逻辑,修复语音输入遮罩层样式,更新画布背景透明度,增强用户交互体验。 (#4435) * perf: mobil voice input --------- Co-authored-by: dreamer6680 <1468683855@qq.com> * Test completion v2 (#4438) * add v2 completions (#4364) * add v2 completions * completion config * config version * fix * frontend * doc * fix * fix: completions v2 api --------- Co-authored-by: heheer <heheer@sealos.io> * package * Test mongo log (#4443) * feat: mongodb-log (#4426) * perf: mongo log * feat: completions stop reasoner * mongo db log --------- Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com> * update doc * Update doc * fix external var ui (#4444) * action * fix: ts (#4458) * preview doc action add docs preview permission update preview action udpate action * update doc (#4460) * update preview action * update doc * remove * update * schema * update mq export;perf: redis cache (#4465) * perf: redis cache * update mq export * perf: website sync error tip * add error worker * website sync ui (#4466) * Updated the dynamic display of the voice input pop-up (#4469) * Update VoiceInput.tsx * Update VoiceInput.tsx * Update VoiceInput.tsx * fix: voice input --------- Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: a.e. <49438478+I-Info@users.noreply.github.com> Co-authored-by: gggaaallleee <91131304+gggaaallleee@users.noreply.github.com> Co-authored-by: dreamer6680 <1468683855@qq.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
74 lines
2.5 KiB
Plaintext
74 lines
2.5 KiB
Plaintext
LOG_DEPTH=3
|
||
# 默认用户密码,用户名为 root,每次重启时会自动更新。
|
||
DEFAULT_ROOT_PSW=123456
|
||
# 数据库最大连接数
|
||
DB_MAX_LINK=5
|
||
# token
|
||
TOKEN_KEY=dfdasfdas
|
||
# 文件阅读时的密钥
|
||
FILE_TOKEN_KEY=filetokenkey
|
||
# root key, 最高权限
|
||
ROOT_KEY=fdafasd
|
||
# openai 基本地址,可用作中转。
|
||
OPENAI_BASE_URL=https://api.openai.com/v1
|
||
# OpenAI API Key
|
||
CHAT_API_KEY=sk-xxxx
|
||
# ai proxy api
|
||
AIPROXY_API_ENDPOINT=https://xxx.come
|
||
AIPROXY_API_TOKEN=xxxxx
|
||
|
||
# 强制将图片转成 base64 传递给模型
|
||
MULTIPLE_DATA_TO_BASE64=true
|
||
|
||
# Redis URL
|
||
REDIS_URL=redis://default:password@127.0.0.1:6379
|
||
# mongo 数据库连接参数,本地开发连接远程数据库时,可能需要增加 directConnection=true 参数,才能连接上。
|
||
MONGODB_URI=mongodb://username:password@0.0.0.0:27017/fastgpt?authSource=admin
|
||
# 日志库
|
||
MONGODB_LOG_URI=mongodb://username:password@0.0.0.0:27017/fastgpt?authSource=admin
|
||
# 向量库优先级: pg > oceanbase > milvus
|
||
# PG 向量库连接参数
|
||
PG_URL=postgresql://username:password@host:port/postgres
|
||
# OceanBase 向量库连接参数
|
||
OCEANBASE_URL=
|
||
# milvus 向量库连接参数
|
||
MILVUS_ADDRESS=
|
||
MILVUS_TOKEN=
|
||
|
||
# code sandbox url
|
||
SANDBOX_URL=http://localhost:3001
|
||
# 商业版地址
|
||
PRO_URL=
|
||
# 页面的地址,用于自动补全相对路径资源的 domain,注意后面不要跟 /
|
||
FE_DOMAIN=http://localhost:3000
|
||
# 文件域名,也是指向 FastGPT 服务,但是如果希望内容足够安全,可以独立分配一个域名,避免高危文件读取到主域名的内容。
|
||
FILE_DOMAIN=http://localhost:3000
|
||
# 二级路由,需要打包时候就确定
|
||
# NEXT_PUBLIC_BASE_URL=/fastai
|
||
|
||
# 日志等级: debug, info, warn, error
|
||
LOG_LEVEL=debug
|
||
STORE_LOG_LEVEL=warn
|
||
|
||
# 安全配置
|
||
# 对话文件 n 天过期
|
||
CHAT_FILE_EXPIRE_TIME=7
|
||
# 启动 IP 限流(true),部分接口增加了 ip 限流策略,防止非正常请求操作。
|
||
USE_IP_LIMIT=false
|
||
# 工作流最大运行次数,避免极端的死循环情况
|
||
WORKFLOW_MAX_RUN_TIMES=500
|
||
# 循环最大运行次数,避免极端的死循环情况
|
||
WORKFLOW_MAX_LOOP_TIMES=50
|
||
# 启用内网 IP 检查
|
||
CHECK_INTERNAL_IP=false
|
||
|
||
# 对话日志推送服务
|
||
# # 日志服务地址
|
||
# CHAT_LOG_URL=http://localhost:8080
|
||
# # 日志推送间隔
|
||
# CHAT_LOG_INTERVAL=10000
|
||
# # 日志来源ID前缀
|
||
# CHAT_LOG_SOURCE_ID_PREFIX=fastgpt-
|
||
# 自定义跨域,不配置时,默认都允许跨域(逗号分割)
|
||
ALLOWED_ORIGINS=
|