Commit Graph
362 Commits
Author SHA1 Message Date
Chenyme 2afefa531b chore: add description to bug report template for clearer issue reporting 2026-03-05 16:54:47 +08:00
Chenyme 25f947790e chore: enhance token management with batch enable/disable functionality 2026-03-05 16:54:12 +08:00
Chenyme fc2bf157a4 Merge pull request #276 from highkay/main
chore(docker): replace uvicorn with granian
2026-03-05 15:57:49 +08:00
Chenyme 86872b8756 refactor: disable direct startup of main.py and update README for Granian CLI usage 2026-03-05 15:54:43 +08:00
highkay 2bead4bba6 chore(docker): replace uvicorn with granian 2026-03-05 13:12:31 +08:00
Chenyme efba04ec0a docs: update README files to include links to external documentation 2026-03-04 23:03:52 +08:00
Chenyme f180c952d2 feat: add CF cookies configuration and improve proxy handling in asset services 2026-03-04 23:00:23 +08:00
Chenyme 263bf4658e Merge pull request #273 from crmmc/main
fix(): 解决 Docker Compose 下 SERVER_PORT 变量实际不生效的问题,并同步更新了文档说明
2026-03-04 22:26:55 +08:00
Chenyme 04fbefe102 Merge pull request #271 from samqin123/feat/health-check
Update main.py
2026-03-04 22:26:07 +08:00
Chenyme 944412ca47 chore: enhance configuration with new fields for custom instructions and session management 2026-03-04 22:25:44 +08:00
crmmc f6f049f1cb fix(): decouple compose host/app ports and update README guidance 2026-03-04 22:10:05 +08:00
samqin123 9e4109c7a9 Update main.py
feat: 添加/health接口用于服务器保活和Render健康检查
2026-03-04 21:15:18 +08:00
Chenyme 43317ea186 Merge pull request #270 from africa1207/main
feat: 增加自定义指令
2026-03-04 20:16:03 +08:00
Chenyme 8181ba167a Merge pull request #269 from arces/feature/english-translation
English Translation + Translation Docs
2026-03-04 18:25:29 +08:00
Chenyme 18051f381f feat: add static versioning to locale fetch and enhance chat session management with default title handling 2026-03-04 18:22:10 +08:00
Chenyme 99d7bd8dda Merge pull request #261 from mucsbr/main
feat: add proxy SSL verification skip and configurable session reset …
2026-03-04 18:00:25 +08:00
Chenyme a6828709ef feat: enhance WebSocket proxy handling and add session reset status code 2026-03-04 17:57:35 +08:00
liutao 9b90dddc16 feat: 增加自定义指令 2026-03-04 17:05:44 +08:00
Dan Janes d5a961ff11 English Translation + Translation Docs
Added an i18n English translation + Original Chinese text.
Readme talking about how it works, how to use it in the future, etc
2026-03-03 15:36:39 -08:00
being s a8a0f036b4 feat: add proxy SSL verification skip and configurable session reset codes
When using a proxy with self-signed certificates, the original strict SSL
verification causes connection failures. This patch adds:

- `proxy.skip_proxy_ssl_verify` config option to bypass proxy SSL
  verification (PROXY_SSL_VERIFYPEER / PROXY_SSL_VERIFYHOST) without
  affecting target server SSL validation
- WebSocket SSL context override for proxy connections
- `retry.reset_session_status_codes` config option to allow customizing
  which HTTP status codes trigger a session reset (defaults to [403])
2026-03-02 15:39:12 +08:00
Chenyme d76b5e49cc Merge pull request #256 from chenyme/fix
chore: bump version to 1.5.4 and update API key description in configuration files
2026-03-01 16:55:43 +08:00
Chenyme 4706d91bd7 chore: bump version to 1.5.4 and update API key description in configuration files 2026-03-01 16:54:19 +08:00
Chenyme c6660dc193 chore: bump version to 1.5.3 in pyproject.toml and uv.lock 2026-03-01 16:02:09 +08:00
Chenyme 4fbf192cbd feat: update chat UI with multi-session management and improved layout v1.5.3 2026-03-01 16:00:31 +08:00
Chenyme e3b864c87b Merge pull request #252 from timerring/feat
feat: add CF clearance auto-refresh and WARP IP support
2026-03-01 15:44:22 +08:00
Chenyme cf3e2251a7 Merge main 2026-03-01 15:42:51 +08:00
Chenyme 708a75338a refactor: enhance cf_refresh configuration and improve error handling 2026-03-01 15:38:43 +08:00
Chenyme 188ef6d437 Merge pull request #251 from piexian/feat/chat-multi-session
feat(chat): 添加多会话管理与 UI 交互优化,修复401
2026-03-01 14:57:17 +08:00
Chenyme a511607cae feat(api): Integrate chat router with public key verification 2026-03-01 14:56:16 +08:00
piexian 111614a6bd fix(ui): 修复移动端适配与安全渲染问题
- 顶部导航栏移动端适配:缩减间距、品牌文字隐藏、链接横向滚动
- 底部 footer 移动端居中显示,防止溢出裁切
- 输入栏移动端改为双排布局:上排输入框、下排功能按钮
- 模型/推理下拉菜单移除 overflow 裁剪,修复移动端无法展示问题
- 对话区滚动条改为细线样式,悬停时显示、拖动时加深
- 统一 innerHTML 渲染入口为 setRenderedHTML,收口 XSS 风险
- 恢复空密钥时的 verify 校验,页面初始化未通过认证时跳转登录
2026-03-01 10:47:11 +08:00
John Howe 2c4d888846 refactor: comment out warp by default, add usage note for clean exit IP 2026-03-01 10:30:43 +08:00
John Howe 74a8fb7bd4 refactor: remove emoji from logs, comment out flaresolverr by default
- Remove all emoji from cf_refresh log messages
- Comment out flaresolverr service entirely (not started by default)
- Simplify enable instructions: uncomment env vars + flaresolverr block
2026-03-01 10:28:54 +08:00
John Howe fc37404ebe refactor: remove emoji from logs, make flaresolverr optional via profiles
- Remove all emoji from cf_refresh log messages
- Add Docker Compose profiles to flaresolverr (only starts with --profile cf-refresh)
- Default: docker compose up starts grok2api + warp only, no 500MB Chrome process
- CF refresh stays disabled unless explicitly configured
2026-03-01 10:25:32 +08:00
John Howe a4e7b96d29 fix: remove nginx, restore imagine_fast selects, clean up docker-compose
- Remove nginx service and nginx/ directory (not in main branch)
- Restore imagine_fast size/response_format select inputs
- Revert grok2api to ports: 8000:8000 (direct expose)
- Remove dev-testing source mounts from docker-compose
- Restore warp port to 1080
2026-03-01 10:16:42 +08:00
John Howe 219125ffb9 fix: disable CF auto-refresh by default in docker-compose
Comment out FLARESOLVERR_URL env vars so CF refresh is not auto-enabled
on first docker compose up. Users can enable it by uncommenting the env
vars or toggling it in the admin panel.
2026-03-01 10:08:47 +08:00
John Howe b85b87072b fix: use loguru logging, empty default flaresolverr_url, add nginx config, mount local source
- Switch cf_refresh module from stdlib logging to loguru for consistent log output
- Set flaresolverr_url default to empty so FLARESOLVERR_URL env var triggers auto-enable
- Add nginx/conf/default.conf with SSE streaming support
- Mount local source files in docker-compose for development testing
- Change warp port to 1180 to avoid local conflict
2026-03-01 10:02:35 +08:00
John Howe 26504b672f feat: add cf_refresh auto-refresh module and full Docker Compose deployment
- Add app/services/cf_refresh/ module (FlareSolverr-based cf_clearance auto-refresh)
- Integrate CF refresh startup/shutdown in main.py lifespan
- Add CF refresh config entries in config.defaults.toml (enabled, flaresolverr_url, refresh_interval, timeout)
- Update headers.py to use cf_cookies from FlareSolverr instead of single cf_clearance
- Add admin panel CF refresh UI with toggle-linked field disabling
- Docker Compose: add warp (SOCKS proxy), nginx (reverse proxy), flaresolverr containers
2026-03-01 09:48:13 +08:00
piexian 623570ccb4 fix(auth,chat): 加固认证逻辑与修复前端交互缺陷
- 移除 verify_api_key 中 public_enabled 无密钥时的免认证后门
- 对 public_key 进行 strip 归一化,避免配置空白导致哈希不匹配
- 前端空密钥时直接缓存空值,移除多余的 verify 网络请求
- 阻止删除正在流式传输中的消息,防止 session 状态不同步
- 编辑消息取消时使用 DOM 克隆恢复,避免 innerHTML 注入风险
- 合并三个全局 click 监听器为一个,减少事件绑定开销
2026-03-01 03:42:44 +08:00
piexian e3b3aab4dd feat(chat): 添加多会话管理与 UI 交互优化
- 实现基于 localStorage 的多会话管理(创建/切换/删除/重命名)
- 新增侧边栏会话列表,支持移动端滑入式布局
- 替换原生 select 为自定义模型/推理强度下拉菜单
- 支持消息编辑、删除、从指定位置重新生成
- 添加上下文压缩功能(保留最近 4 条消息)
- 优化 public_key 认证:前端哈希存储,后端支持原始值与哈希匹配
- 改进思考过程展示:工具卡片彩色标识、自动折叠与计时优化
2026-03-01 03:24:47 +08:00
Chenyme 0d0ed8f833 Merge pull request #248 from qoomezhu/main
增加2000token显示每页,生图优先nfsw标签的token
2026-02-28 11:48:35 +08:00
Chenyme 6c32305cc6 Merge branch 'main' into pr/248
# Conflicts:
#	app/services/grok/services/image.py
#	config.defaults.toml
2026-02-28 10:58:22 +08:00
Chenyme fc77dd2147 Merge pull request #240 from lijirou12/main
新增可通过对话调用imagine,完善稳定性与代理支持
2026-02-28 10:23:44 +08:00
Chenyme 45a8be9187 Merge branch 'main' into main 2026-02-28 10:23:34 +08:00
Chenyme 1c501e67ac feat: Introduce grok-imagine-1.0-fast model, replacing grok-superimage-1.0, and update related documentation and API references. 2026-02-28 10:21:34 +08:00
Chenyme 3b4316c145 Merge pull request #236 from chenhuawang-04/fix/image-draft-filter-v2
fix: improve final image selection in stream processor
2026-02-28 09:24:29 +08:00
qoomezhu 547dbe9d15 Merge pull request #2 from qoomezhu/feat/image-mode-token-routing
image: 优先选择 nsfw-tag Token + WebSocket 重试配置
2026-02-28 00:29:38 +08:00
qoomezhu 12ffe27e09 Merge pull request #1 from qoomezhu/feat/page-size-2000
admin: Token 列表分页上限扩展到 2000
2026-02-28 00:29:01 +08:00
Mo Li b128139785 Merge pull request #55 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-zc14eb
Add grok-superimage server-side image flow, robust image retries and SSE error handling
2026-02-27 14:21:15 +08:00
Mo Li e733e84a46 feat: make blocked review grace timeout configurable 2026-02-27 14:20:46 +08:00
Mo Li 0f7df444ca Merge pull request #54 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-jp2fkc
Add grok-superimage, robust image streaming/retries, SSE error handling, proxy and config safety
2026-02-27 14:09:24 +08:00