Skip to content

Releases: Calcium-Ion/new-api

v0.4.6.1

06 Jan 12:10
b85a07e
Compare
Choose a tag to compare

What's Changed

[v0.4.6.1] - 2025-01-06

⚠️ BREAKING CHANGES

  • 修改了 access_token 鉴权机制
    • 现在需要在请求头中添加 New-Api-User 字段
    • New-Api-User 的值必须为用户 ID
    • 不包含此请求头的 access_token 鉴权将会失败

📝 Migration Guide

如果您正在使用 access_token 鉴权,需要进行以下更新:

# 旧版请求
Authorization: Bearer <access_token>

# 新版请求
Authorization: Bearer <access_token>
New-Api-User: <user_id>

Full Changelog: v0.4.6.0...v0.4.6.1

v0.4.6.0

06 Jan 07:36
Compare
Choose a tag to compare

What's Changed

破坏性更新说明 (v0.4.6.0)

数据库变更

  • 修改 abilities 表 model 字段长度从 64 字符扩展到 255 字符
  • 此更新可能导致数据库兼容性问题

如遇启动问题

如果系统无法正常启动,请按以下步骤操作:

  1. 删除数据库中的 abilities 表
  2. 重新启动系统
  3. 进入渠道管理页面
  4. 点击"修复数据库一致性"按钮

更新内容

  • 优化了渠道模型字段长度限制
  • 支持更长的模型名称存储

注意事项

  • 建议在更新前备份数据库
  • 更新后请及时检查渠道配置是否正常

Full Changelog: v0.4.5.3...v0.4.6.0

v0.4.5.3

05 Jan 09:19
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.5.2...v0.4.5.3

v0.4.5.2

02 Jan 08:34
Compare
Choose a tag to compare

Full Changelog: v0.4.5.1...v0.4.5.2

v0.4.5.1

01 Jan 16:18
ba1aad8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.5.0...v0.4.5.1

v0.4.5.0

31 Dec 12:35
16725d1
Compare
Choose a tag to compare

What's Changed

  • Happy New Year 2025
  • Update channel-test.go by @iszcz in #683

Full Changelog: v0.4.4.3...v0.4.5.0

v0.4.4.3

30 Dec 18:24
Compare
Choose a tag to compare

Full Changelog: v0.4.4.2...v0.4.4.3

v0.4.4.2

30 Dec 16:04
Compare
Choose a tag to compare

Full Changelog: v0.4.4.1...v0.4.4.2

v0.4.4.1

30 Dec 11:52
Compare
Choose a tag to compare

v0.4.4.0

30 Dec 10:02
65af1a4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.3.1...v0.4.4.0