CalciumIon
03256dbdad
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.
2024-12-20 21:50:58 +08:00
HowieWood
8eb32e9b3f
Modify the default gemini API to v1beta
2024-11-16 12:21:50 +00:00
1808837298@qq.com
33af069fae
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
CalciumIon
ac4262c542
feat: support vertex ai #377
2024-08-27 20:19:51 +08:00
CalciumIon
e504665f68
feat: 优化Gemini模型版本获取逻辑
2024-08-02 17:23:59 +08:00
HowieWu
22a98c5879
修改Gemini版本获取逻辑
...
使用GEMINI_MODEL_API环境变量覆盖默认版本映射,使用","分隔不同模型和版本
-e GEMINI_MODEL_API="gemini-1.5-pro-latest:v1beta,gemini-1.5-pro-001:v1beta,gemini-1.5-pro:v1beta,gemini-1.5-flash-latest:v1beta,gemini-1.5-flash-001:v1beta,gemini-1.5-flash:v1beta,gemini-ultra:v1beta,gemini-1.5-pro-exp-0801:v1beta"
2024-08-02 11:20:26 +08:00
CalciumIon
f96291a25a
feat: support gemini tool calling ( close #368 )
2024-07-18 20:28:47 +08:00
CalciumIon
bcc7f3edb2
refactor: audio relay
2024-07-16 22:07:10 +08:00
CalciumIon
0f687aab9a
fix: azure stream options
2024-07-15 16:05:30 +08:00
CalciumIon
4e7e206290
fix: gemini usage ( close #354 )
2024-07-10 16:01:09 +08:00
CalciumIon
8af4e28f75
feat: support cohere rerank
2024-07-06 17:09:22 +08:00
CalciumIon
f2654692e8
feat: first response time support gemini and claude
2024-06-27 00:16:39 +08:00
HowieWu
a5b84ba524
Update adaptor.go
2024-05-15 10:25:01 +08:00
Maple Gao
d7e117acf5
fix: Gemini 1.5 name error
2024-04-15 14:27:18 +08:00
Maple Gao
21250a46a6
feat: support google v1beta and Gemini Ultra
2024-04-15 14:19:19 +08:00
CaIon
44a8ade4ba
fix: remove sensitive check on completion ( close #157 )
2024-03-29 22:20:14 +08:00
CaIon
64b9d3b58c
feat: 初步兼容生成内容检查
2024-03-20 19:00:51 +08:00
CaIon
7a663d26ec
feat: 初步兼容敏感词过滤
2024-03-20 17:07:42 +08:00
CaIon
3c3c53051d
fix: fix gemini
2024-03-08 20:29:04 +08:00
1808837298@qq.com
6013219f5b
feat: 初步重构完成
2024-02-29 16:21:25 +08:00
1808837298@qq.com
5b18cd6b0a
feat: 初步重构
2024-02-29 01:08:18 +08:00