 dreamhunter2333andClaude Opus 4.5
|
bdb4825cdc
|
feat: 修复 Codex 缓存 token 计费并优化代码结构
- 修复 Codex API 缓存 token 重复计费问题 (input_tokens 包含 cached_tokens)
- 提取共享代码到 src/providers/shared/usage-utils.ts,消除重复
- 前端定价页面增加缓存倍率配置列
- 修复 var 为 const,favicon 改为云图标
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-30 21:06:44 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
6a648f3fa7
|
feat: 优化前端 UI 设计和用户体验
- 重构所有 UI 组件,采用现代化设计风格
- 新增 PageContainer 组件统一页面布局
- 优化 Sidebar 支持折叠功能
- 改进 Toast 通知样式和交互
- 统一所有页面的视觉风格和间距
- 提升整体界面的专业性和易用性
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-30 14:11:51 +08:00 |
|
dreamhunter2333
|
066437fcb3
|
Fix duplicate usage tracking for streaming
|
2026-01-02 01:42:10 +08:00 |
|
dreamhunter2333
|
80a6fedbac
|
Add responses proxies and usage fixes
|
2025-12-31 11:31:07 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
990528da37
|
fix: 修复 API 响应 body stream 重复读取错误
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-27 11:29:41 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
6713f240ba
|
fix: 修复 SPA 路由刷新 404 和认证状态丢失问题
- 移除手动 SPA fallback 逻辑,使用 Cloudflare Assets 原生 SPA 支持
- 修复刷新时认证状态丢失导致跳转首页的问题
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-21 01:39:11 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
9bf3a9efb2
|
fix: 修复 Toast 在浅色模式下背景色问题
- 使用内联 style 直接设置背景色
- 浅色模式使用纯白 #ffffff
- 深色模式使用灰色 #1f2937
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-20 13:32:05 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
4572e5fc9e
|
feat: 使用 React + Vite + shadcn/ui 重构前端
- 使用 React 19 + TypeScript + Vite 7 重构整个前端
- 集成 shadcn/ui 组件库和 Tailwind CSS v4
- 使用 TanStack Query 管理服务端状态
- 使用 Zustand 管理客户端状态(认证)
- 使用 React Router v7 实现路由
- 实现浅粉色主题,支持深色模式
- 添加 API 拦截器和全局错误处理
- 优化 Toast 通知样式
- 管理页面按钮右对齐
- Token 显示脱敏处理
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-20 13:24:45 +08:00 |
|
 dreamhunter2333andClaude Sonnet 4.5
|
de24d420a4
|
refactor: 优化 Claude proxy 代码结构和 header 处理
- 简化 stream 条件判断(去掉冗余的 || reqJson.stream)
- 移除不必要的 else(stream 分支已有 return)
- 删除客户端的 x-api-key header 避免冲突
- 精简 header 处理逻辑
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-17 19:04:02 +08:00 |
|
 dreamhunter2333andClaude Sonnet 4.5
|
4d4e78fa41
|
feat: ProxyEndpoint 支持 x-api-key 认证方式
- 支持 OpenAI 格式:Authorization: Bearer xxx
- 支持 Claude 格式:x-api-key: xxx
- 两种认证方式都可以使用
- 客户端可以使用任一格式调用 /v1/messages 和 /v1/chat/completions
- 更新 schema 使两个 header 都为 optional
Claude proxy 完善:
- 删除客户端 Authorization header 避免与上游 API 冲突
- 支持 message_complete 事件(最新格式)
- 保留 message_stop 作为向后兼容
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-17 18:57:08 +08:00 |
|
 dreamhunter2333andClaude Sonnet 4.5
|
28efa1367b
|
fix: 修复频道多选和 Claude API streaming 支持
1. 频道多选下拉框修复:
- 将点击事件改为 checkbox onchange 事件
- 新增 handleChannelCheckboxChange 函数
- 避免手动切换导致状态重复切换的问题
2. Claude API 支持完善:
- 删除客户端的 Authorization header 避免冲突
- 支持 message_complete 事件(Claude 最新格式)
- 保留 message_stop 处理作为向后兼容
- 正确提取 streaming 和 non-streaming 的 token usage
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-17 18:53:23 +08:00 |
|
 dreamhunter2333andClaude Sonnet 4.5
|
50b40a18a8
|
fix: 修复频道多选下拉框选择无效的问题
- 将点击事件从 div 移到 checkbox 的 onchange 事件
- 新增 handleChannelCheckboxChange 函数,正确处理 checkbox 状态
- 避免手动切换 checkbox 导致状态被切换两次的问题
- 现在点击 checkbox 可以正确更新选中状态
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-17 18:48:42 +08:00 |
|
 dreamhunter2333andClaude Sonnet 4.5
|
198dc500aa
|
feat: 重构管理界面并添加统一 loading 效果
- 完全重构前端管理界面,采用模块化架构
- 新增独立的 CSS 和 JS 模块(utils, auth, channels, tokens, pricing, api-test, database)
- 实现统一的 loading 遮罩效果,所有 API 请求自动显示加载状态
- 添加现代化多选下拉框组件用于频道选择
- 实现模型部署映射的可视化表格编辑
- 修复页面高度自适应问题,管理页面占满全屏
- 优化侧边栏布局,添加 GitHub 链接和版本号
- 令牌管理页面隐藏敏感 key,添加复制功能
- 管理页面切换时自动重置为列表视图并重新加载数据
- 新增 Claude Proxy 提供商支持
- 统一所有 API 调用的错误处理和 loading 状态管理
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-17 18:41:05 +08:00 |
|
dreamhunter2333
|
e376a8a539
|
downgrade zod
|
2025-12-12 20:27:55 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
700a50372d
|
docs: 将监控与统计、核心优势、安全性、API文档移入可折叠区域
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-11 13:31:27 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
dfc9d084a2
|
docs: 合并使用指南、管理功能、配置说明到可折叠的二级标题
将使用指南、管理功能、配置说明、Token 配置合并到一个可折叠的"使用与配置"二级标题下,内部改为三级标题
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-11 13:30:24 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
9e0da518ea
|
docs: 为可折叠区域添加标题样式
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-11 13:26:56 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
5b49dbad6b
|
docs: 优化 README 结构
- 将项目结构移至系统架构后,改为可折叠
- 将使用指南改为可折叠
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-11 13:26:07 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
0af96e1639
|
docs: 将系统架构图改为 Mermaid 格式
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-11 13:23:29 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
5656052301
|
chore: 更新依赖包版本
- chanfana: 2.8.1 -> 2.8.3
- hono: 4.8.2 -> 4.10.8
- zod: 3.25.67 -> 4.1.13
- wrangler: 4.20.5 -> 4.53.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-11 13:21:38 +08:00 |
|
 dreamhunter2333andClaude Opus 4.5
|
a02ec82a8f
|
feat: 现代化管理面板界面
- 添加 CSS 变量系统支持主题定制
- 改进视觉效果:更柔和的渐变、阴影和圆角
- 添加平滑的动画和过渡效果
- 优化卡片、按钮、表单等组件样式
- 改进响应式设计适配
- 美化滚动条和选择效果
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-11 13:19:33 +08:00 |
|
dreamhunter2333
|
8bffed8a03
|
优化代理服务流式响应处理和使用量统计
- 修复 processStreamData 异步处理问题,使用 for..of 替代 forEach
- 优化流式响应处理,使用 response.body.tee() 分离客户端和服务端流
- 使用 executionCtx.waitUntil() 确保后台使用量统计不阻塞响应
- 为 Azure OpenAI 代理添加 api_version 条件检查
- 统一两个代理服务的流处理逻辑,提高代码一致性
|
2025-07-01 03:00:38 +08:00 |
|
dreamhunter2333
|
8d4af1b895
|
重构 TokenUtils: 从类改为对象,添加新的 pricing 和 usage 处理方法
- 将 TokenUtils 从类重构为对象
- 添加 getPricing 方法,支持 channel-specific 和 global pricing
- 添加 processUsage 方法,集中处理使用量计算和记录
- 在 providers/index.ts 中简化 usage 处理逻辑
- 添加 API key 掩码功能以保护敏感信息
|
2025-06-27 02:08:16 +08:00 |
|
dreamhunter2333
|
3b6c5b37c1
|
fix: use deployment_mapper for model replacement in OpenAI provider
|
2025-06-26 20:35:50 +08:00 |
|
dreamhunter2333
|
d4d318579b
|
feat: add OpenAI provider support
|
2025-06-26 01:24:43 +08:00 |
|
dreamhunter2333
|
d62e662d20
|
feature: support azure deepseek
|
2025-06-24 19:02:52 +08:00 |
|
dreamhunter2333
|
4baf088628
|
feature: update ux
|
2025-06-23 13:44:42 +08:00 |
|
dreamhunter2333
|
4100cfd02d
|
feature: update ux
|
2025-06-23 13:15:23 +08:00 |
|
dreamhunter2333
|
13d6b11d3f
|
feature: update ux
|
2025-06-23 01:03:00 +08:00 |
|
dreamhunter2333
|
aed83f2ec5
|
feature: update ux
|
2025-06-23 01:00:53 +08:00 |
|
dreamhunter2333
|
bdbfa90e89
|
update doc
|
2025-06-22 19:39:59 +08:00 |
|
dreamhunter2333
|
90525cdfd8
|
init
|
2025-06-21 19:30:54 +08:00 |
|