Releases: Calcium-Ion/new-api
Releases · Calcium-Ion/new-api
v0.4.1.2
- feat: Add FetchModels endpoint and refactor FetchUpstreamModels
- 修复获取渠道模型的bug,兼容非OpenAI渠道获取模型
v0.4.1.1
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
What's Changed
Full Changelog: v0.4.0.9...v0.4.1.0
v0.4.0.9
What's Changed
- fix-gemini-json-schema by @tenacioustommy in #651
New Contributors
- @tenacioustommy made their first contribution in #651
Full Changelog: v0.4.0.8...v0.4.0.9
v0.4.0.8
v0.4.0.7
feat: Enhance Gemini function parameter handling
- Added logic to ensure that function parameters have non-empty properties.
v0.4.0.6
What's Changed
- feat: 支持gemini结构化输出 by @MartialBE in #645
- feat: 适配o1模型 by @HynoR in #643
Full Changelog: v0.4.0.5...v0.4.0.6
v0.4.0.5
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 bothadaptor.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
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
What's Changed
- fix: 修复gemini thinking在stream下会内容丢失 by @MartialBE in #642
- chore: 更新遗漏的gemini模型 by @HynoR in #641
- fix: 修复添加模型切换模式时,初始化空值导致的判断问题 by @HynoR in #636
New Contributors
- @MartialBE made their first contribution in #642
Full Changelog: v0.4.0.2...v0.4.0.3