RedwindA
|
e3f96120bc
feat(gemini): support cached token billing
|
il y a 1 mois |
Seefs
|
00c5d9ffdf
feat: logs show reject reason
|
il y a 1 mois |
CaIon
|
b58fa3debc
fix(helper): improve error handling in FlushWriter and related functions
|
il y a 2 mois |
CaIon
|
f5b409d74f
feat: refactor token estimation logic
|
il y a 3 mois |
CaIon
|
8f039b3a53
feat: Set ContextKeyLocalCountTokens in NativeGeminiEmbeddingHandler for token tracking
|
il y a 3 mois |
CaIon
|
84745d5ca4
feat: Add ContextKeyLocalCountTokens and update ResponseText2Usage to use context in multiple channels
|
il y a 3 mois |
Seefs
|
e1c7a4f41f
format: package name -> github.com/QuantumNous/new-api (#2017)
|
il y a 4 mois |
CaIon
|
6451158680
Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"
|
il y a 5 mois |
creamlike1024
|
e732c58426
feat: gemini-2.5-flash-image-preview 文本和图片输出计费
|
il y a 6 mois |
CaIon
|
e2037ad756
refactor: Introduce pre-consume quota and unify relay handlers
|
il y a 6 mois |
CaIon
|
e74c6f5de7
✨ feat: Simplify response handling by returning raw response body directly
|
il y a 6 mois |
RedwindA
|
7a31e481a6
fix typo; add ParamOverride for Gemini Embedding
|
il y a 7 mois |
RedwindA
|
b70d2655ed
feat: support native Gemini Embedding
|
il y a 7 mois |
creamlike1024
|
e01986fdd4
Merge remote-tracking branch 'origin/alpha' into ConvertGeminiRequest
|
il y a 7 mois |
creamlike1024
|
d2183af23f
feat: convert gemini format to openai chat completions
|
il y a 7 mois |
CaIon
|
8df3de9ae5
fix: update JSONEditor to default to manual mode for invalid JSON and add error message for invalid data
|
il y a 7 mois |
CaIon
|
07a92293e4
fix: handle case where no response is received from Gemini API
|
il y a 7 mois |
CaIon
|
010f27678d
fix: auto ban
|
il y a 7 mois |
CaIon
|
98952198bb
refactor: Introduce standardized API error
|
il y a 8 mois |
CaIon
|
6b9237f868
🐛 fix: refactor JSON unmarshalling across multiple handlers to use UnmarshalJson and UnmarshalJsonStr for consistency
|
il y a 8 mois |
CaIon
|
3002659f47
✨ feat: add CloseResponseBodyGracefully function to handle HTTP response body closure
|
il y a 8 mois |
CaIon
|
0708452939
fix: improve usage calculation in GeminiTextGenerationStreamHandler
|
il y a 8 mois |
CaIon
|
a9e5d99ea3
refactor: token counter logic
|
il y a 8 mois |
creamlike1024
|
a56d9ea98b
fix: gemini 原生格式流模式中断请求未计费
|
il y a 8 mois |
CaIon
|
f5e80af0b3
fix: update response handling in GeminiTextGenerationStreamHandler
|
il y a 8 mois |
CaIon
|
5d8a0952b4
feat: enhance error handling in GeminiHelper and streamline response processing
|
il y a 8 mois |
creamlike1024
|
8201daa4b4
update relay-gemini-native.go
|
il y a 8 mois |
xqx121
|
edcdb378fd
Update relay-gemini-native.go
|
il y a 8 mois |
creamlike1024
|
9496dac448
feat: gemini audio input billing
|
il y a 9 mois |
RedwindA
|
c7e812361d
fix: 移除流式响应结尾的[Done],以适应Gemini API的行为
|
il y a 9 mois |