Skip to content

Releases: Calcium-Ion/new-api

v0.4.1.2

24 Dec 10:03
Compare
Choose a tag to compare
  • feat: Add FetchModels endpoint and refactor FetchUpstreamModels
  • 修复获取渠道模型的bug,兼容非OpenAI渠道获取模型

v0.4.1.1

24 Dec 06:49
Compare
Choose a tag to compare

What's Changed

  • fix: mutil func call in gemini by @Yan-Zero in #652
  • feat: Enhance logging functionality with group support
    • Added a new 'group' parameter to various logging functions, including RecordConsumeLog, GetAllLogs, and GetUserLogs, to allow for more granular log tracking.
    • Updated the logs table component to display group information, improving the visibility of log data.
    • Refactored related functions to accommodate the new group parameter, ensuring consistent handling across the application.
    • Improved the initialization of the group column for PostgreSQL compatibility.

Full Changelog: v0.4.0.9...v0.4.1.1

v0.4.1.0

23 Dec 12:51
61495a4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0.9...v0.4.1.0

v0.4.0.9

22 Dec 16:11
eec8f52
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0.8...v0.4.0.9

v0.4.0.8

22 Dec 09:25
Compare
Choose a tag to compare

What's Changed

  • 解决 #534 用户管理-管理用户-查询报错 (SQLSTATE 42601)-postgresql by @palboss in #648
    feat: Enhance Gemini function parameter handling

New Contributors

Full Changelog: v0.4.0.7...v0.4.0.8

v0.4.0.7

22 Dec 06:36
Compare
Choose a tag to compare

feat: Enhance Gemini function parameter handling

  • Added logic to ensure that function parameters have non-empty properties.

v0.4.0.6

21 Dec 08:46
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.0.5...v0.4.0.6

v0.4.0.5

20 Dec 13:51
Compare
Choose a tag to compare

refactor: Enhance error handling in Gemini request conversion

  • Updated CovertGemini2OpenAI function to return an error alongside the GeminiChatRequest, improving error reporting for image processing.
  • Modified ConvertRequest methods in both adaptor.go files to handle potential errors from the Gemini conversion, ensuring robust request handling.
  • Improved clarity and maintainability of the code by explicitly managing error cases during request conversion.

v0.4.0.4

20 Dec 13:37
Compare
Choose a tag to compare

feat: Add GEMINI_VISION_MAX_IMAGE_NUM configuration

  • Introduced GEMINI_VISION_MAX_IMAGE_NUM to README files for better user guidance.
  • Updated env.go to retrieve the maximum image number from environment variables, defaulting to 16.
  • Modified image handling logic in relay-gemini.go to respect the new configuration, allowing disabling of the limit by setting it to -1.
  • Removed hardcoded constant for maximum image number in constant.go to streamline configuration management.

v0.4.0.3

20 Dec 12:33
c289694
Compare
Choose a tag to compare

What's Changed

  • fix: 修复gemini thinking在stream下会内容丢失 by @MartialBE in #642
  • chore: 更新遗漏的gemini模型 by @HynoR in #641
  • fix: 修复添加模型切换模式时,初始化空值导致的判断问题 by @HynoR in #636

New Contributors

Full Changelog: v0.4.0.2...v0.4.0.3