Skip to content

Feat/usage api alignment - #127

Closed
kapla73 wants to merge 4 commits into
mainfrom
feat/usage-api-alignment
Closed

kapla73 wants to merge 4 commits into
mainfrom
feat/usage-api-alignment

Conversation

@kapla73

@kapla73 kapla73 commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Why

Type

  • New provider
  • New feature
  • Bug fix
  • Refactor
  • Documentation
  • Tests

Surface area

  • Workspace/package boundaries
  • Provider interface / adapter contract
  • YAML schema / config types
  • CLI commands
  • WebUI
  • State management
  • Execution / planning logic
  • Tests / fixtures
  • None of the above

Checklist

  • bun run verify:full passes
  • New provider follows the six-file structure, if applicable
  • No new runtime dependencies added without justification

Behavior / risk

Validation

zhangyi970212 and others added 4 commits November 16, 2026 15:55
- 删除 listModelUsage、listToolUsage 及相关类型和接口
- 新增 getUsageSummary 及其请求和响应类型支持多维度统一查询
- 请求参数 scope 改为 dimension,时间范围改为带时区的 RFC 3339 字符串格式
- 移除分页和名称筛选,明细数据一次性返回 total、models 和 tools 三视图
- 指标结构统一为 { value, unit },支持空指标值为 null,响应无数据时 data_updated_at 返回 null
- 更新文档示例和导出接口,所有用量查询适配百炼官方 Usage API 新规范
- 增加请求参数验证,防止维度与参数不匹配情况发生
- 单元测试覆盖新的接口调用和错误验证,兼容性提升
@kapla73
kapla73 requested a review from chenanran555 November 18, 2026 02:43
@kapla73
kapla73 requested a review from heimanba as a code owner November 18, 2026 02:43
@kapla73 kapla73 closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants