HynoR
35277f2b4a
feat: 适配o1模型
2024-12-20 22:07:53 +08:00
HynoR
f3a7119745
chore: 更新gemini模型
2024-12-20 19:17:56 +08:00
HynoR
3fa1d93b9c
chore: 更新gemini模型
2024-12-20 19:14:53 +08:00
CalciumIon
cab30014ad
feat: Add new experimental Gemini versions to ModelList
...
- Included additional versions: "gemini-2.0-flash-thinking-exp" and "gemini-2.0-flash-thinking-exp-1219".
- Added comments to categorize versions as old, experimental, and flash experimental for better clarity.
2024-12-20 13:26:51 +08:00
CalciumIon
9a54b345c5
feat: support gemini-2.0-flash-thinking #639 #637
2024-12-20 13:20:07 +08:00
CalciumIon
2d865eb735
refactor: Improve channel status update logic and clean up code
...
- Simplified conditional checks in UpdateChannelStatusById function in channel.go to enhance readability.
- Commented out unused image number check in relay-gemini.go for clarity.
- Updated JSON field in en.json for currency consistency, changing "元" from "RMB/CNY" to "CNY" and added a space in "实付金额:" for formatting.
2024-12-17 15:33:16 +08:00
CalciumIon
4163713714
refactor: Update SystemInstructions type in GeminiChatRequest and adjust handling in CovertGemini2OpenAI
...
- Changed SystemInstructions from *GeminiPart to *GeminiChatContent in GeminiChatRequest for improved structure.
- Updated CovertGemini2OpenAI function to accommodate the new SystemInstructions type, ensuring proper handling of message content.
2024-12-16 22:41:23 +08:00
CalciumIon
76acfdc9e2
fix: Correct JSON field name for SystemInstructions in GeminiChatRequest
...
- Updated the JSON field name from "system_instructions" to "system_instruction" to ensure consistency and accuracy in the data structure.
2024-12-16 22:12:56 +08:00
CalciumIon
e6c6bbdef9
feat: support gemini SystemInstructions #408
2024-12-16 20:19:29 +08:00
CalciumIon
f2809917f8
feat: implement channel settings configuration
...
fix #620
2024-12-15 15:52:41 +08:00
CalciumIon
5d338337a0
feat: 兼容OpenAI格式下设置gemini模型联网搜索 #615
2024-12-12 17:58:25 +08:00
CalciumIon
b1fb595610
feat: add model gemini-2.0-flash-exp
2024-12-12 17:21:37 +08:00
CalciumIon
79de02b05f
chore: Update dependencies and refactor JSON handling #614
...
- Removed the `bytedance/sonic` dependency and replaced its usage with the standard `encoding/json` package for JSON marshalling in `relay-text.go`.
- Updated `go.mod` to reflect the removal of `sonic` and adjusted the version of `sonic/loader`.
- Cleaned up `go.sum` to ensure consistency with the updated dependencies.
2024-12-12 14:14:24 +08:00
CalciumIon
024cdb08df
feat: Update model lists and enhance model retrieval in Adaptor
...
- Refactored ModelList in the gemini constant to include new models and remove outdated ones.
- Modified the GetModelList function in the Adaptor to consolidate model lists from multiple sources, ensuring a comprehensive and updated list is returned.
- Commented out deprecated models in the vertex constants for clarity and future reference.
2024-12-11 21:39:41 +08:00
jochne
70b5a7fd88
Update relay-xunfei.go
...
按照讯飞的最新文档,Spark Lite请求地址,对应的domain参数为lite
参考来源:https://www.xfyun.cn/doc/spark/Web.html#_1-接口说明
2024-12-08 01:04:43 +08:00
CalciumIon
195ab1fdd5
feat: add gemini tool_calls finish reason
2024-12-06 14:31:27 +08:00
CalciumIon
be556a23cc
feat: add deepseek channel type
2024-12-05 17:50:08 +08:00
Calcium-Ion
ee99041910
Merge pull request #590 from iszcz/new512
...
realtime令牌额度检测和http
2024-12-04 19:49:57 +08:00
iszcz
c8a29251ac
1
2024-12-04 16:20:42 +08:00
Benny
28885feea2
fix: 360智能接口地址更新
2024-12-02 15:59:08 +00:00
CalciumIon
a9f739a7e2
refactor: improve validation logic and error handling in relay-text.go
...
- Simplified validation checks for MaxTokens and Messages fields.
- Enhanced error messages for better clarity.
- Updated goroutine to avoid passing context unnecessarily.
2024-12-01 08:24:41 +08:00
CalciumIon
6d4edc1f5b
fix: realtime
2024-11-30 23:32:42 +08:00
Calcium-Ion
48abfd055c
Merge pull request #574 from Calcium-Ion/channel-tag
...
feat: 初步集成渠道标签分组功能
2024-11-30 17:45:16 +08:00
CalciumIon
1774be8536
fix: xAI missing finish_reason #572
2024-11-30 16:57:57 +08:00
papersnake
999ba11363
feat: add claude-3-5-haiku-20241022
2024-11-27 13:33:37 +08:00
CalciumIon
7ebc1cfb60
fix: stt模型计费
2024-11-25 19:31:59 +08:00
CalciumIon
15842163be
feat: support audio response_format #580
2024-11-24 16:44:27 +08:00
HynoR
79b6c0a73e
Chore: support gpt-4o-2024-11-20
2024-11-21 09:14:23 +08:00
CalciumIon
ed2ec69545
feat: 暂时禁用透传功能
2024-11-19 15:06:54 +08:00
CalciumIon
a167dd9a23
feat: 暂时禁用透传功能
2024-11-19 15:04:19 +08:00
Calcium-Ion
7aa7114bb9
Merge branch 'main' into main
2024-11-17 16:27:29 +08:00
leezhuuuuu
4601932902
feat: add support for gemini-exp-1114 model / 添加 gemini-exp-1114 模型支持
...
# feat: add support for gemini-exp-1114 model / 添加 gemini-exp-1114 模型支持
## Changes / 更改内容
- Add gemini-exp-1114 to ModelList in constant.go
- Add gemini-exp-1114 to GeminiModelMap with v1beta API version
- 在 constant.go 的 ModelList 中添加 gemini-exp-1114 模型
- 在 GeminiModelMap 中添加 gemini-exp-1114 的 v1beta API 版本映射
## Testing / 测试情况
- [x] Tested gemini-exp-1114 model API calls / 已测试 gemini-exp-1114 模型的 API 调用
- [x] Verified existing models still work / 验证现有模型仍然正常工作
- [x] Confirmed v1beta API version works correctly / 确认 v1beta API 版本正常工作
## Related Issues / 相关问题
- Fix 404 error when calling gemini-exp-1114 model / 修复调用 gemini-exp-1114 模型时的 404 错误
## Implementation Details / 实现细节
- Use configuration-based approach instead of code modification / 使用基于配置的方式而不是修改代码
- Maintain clean separation of concerns / 保持关注点分离
- Keep backward compatibility / 保持向后兼容性
## Notes / 注意事项
- This PR follows the principle of minimal invasion / 本 PR 遵循最小侵入原则
- Configuration changes only / 仅包含配置更改
2024-11-16 21:52:37 +08:00
leezhuuuuu
5d96f7b2cc
增加对于gemini-exp-1114模型的支持,映射到v1beta
...
feat(gemini): add support for gemini-exp-1114 model
- Add gemini-exp-1114 to ModelList in constant.go
- Update GetRequestURL in adaptor.go to use v1beta API version for gemini-exp-1114
- Keep backward compatibility for other models
This change enables the use of the experimental gemini-exp-1114 model by correctly routing its requests to the v1beta API endpoint while maintaining existing functionality for other models.
2024-11-16 21:29:35 +08:00
HowieWood
8eb32e9b3f
Modify the default gemini API to v1beta
2024-11-16 12:21:50 +00:00
CalciumIon
320e6ec5a4
fix: aws claude
2024-11-14 15:12:34 +08:00
CalciumIon
8fc49f98d2
fix: returnPreConsumedQuota
2024-11-10 02:09:18 +08:00
CalciumIon
97fdcd8e8f
feat: 完善audio计费
2024-11-07 16:12:09 +08:00
HowieWood
2ffa4268fc
Continue fixing Ollama embedding return issue
2024-11-06 01:21:02 +00:00
HowieWood
5253a0e7b2
Modify ollama embed return fields
2024-11-05 20:12:51 +08:00
CalciumIon
0a80231e18
chore: 删除无用日志
2024-11-05 19:41:38 +08:00
CalciumIon
7b1ff41e4c
fix: mistral adaptor
2024-11-05 19:32:51 +08:00
1808837298@qq.com
4e0c522cd0
fix: realtime计费
...
(cherry picked from commit fdfea8726c6d86d3844af1ac18d7b3df908f26a7)
2024-11-05 19:29:06 +08:00
Xyfacai
be64408a25
fix(realtime): 修复ws 握手失败、计费问题
...
(cherry picked from commit 618dffc43fd5a5f4065944db87761f9ee18e44d3)
2024-11-05 19:28:46 +08:00
Xyfacai
d596699250
refactor: realtime log
...
(cherry picked from commit fd24dc467bfc360008b313220e607f0176ee7aa3)
2024-11-05 19:28:09 +08:00
Xyfacai
f0907bf60a
fix: 部分情况缺少返回预扣
...
(cherry picked from commit 96373455521a38095706bd81c57f9a18557d9c2e)
2024-11-05 19:28:08 +08:00
1808837298@qq.com
e5c05d77b7
feat: realtime pre consume
...
(cherry picked from commit 273d154e1640bae26b7caedddf1685e9ff21ab74)
2024-11-05 19:28:06 +08:00
1808837298@qq.com
24b3ed50d7
feat: realtime pre consume
...
(cherry picked from commit d87917f8f6eb9d2e144a9f840d6d91767ea2eb69)
2024-11-05 19:28:03 +08:00
1808837298@qq.com
8de79382f0
feat: azure realtime
...
(cherry picked from commit 75ff3d98f06103dc2df1f8817bd3fcbf433e0f20)
2024-11-05 19:27:55 +08:00
1808837298@qq.com
74f9006b40
feat: realtime
...
(cherry picked from commit d4966246e68dbdcdab45ec5c5141362834d74425)
2024-11-05 19:27:47 +08:00
1808837298@qq.com
33af069fae
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00