Seefs
|
c97f4524f2
fix: unify usage mapping and include toolUsePromptTokenCount in input tokens
|
пре 3 месеци |
RedwindA
|
3985d10ae1
feat(gemini): support cached token billing
|
пре 3 месеци |
Seefs
|
68e1e635e9
feat: logs show reject reason
|
пре 4 месеци |
CaIon
|
7d586ef507
fix(helper): improve error handling in FlushWriter and related functions
|
пре 5 месеци |
CaIon
|
1fededceb3
feat: refactor token estimation logic
|
пре 5 месеци |
CaIon
|
89709dfa74
feat: Set ContextKeyLocalCountTokens in NativeGeminiEmbeddingHandler for token tracking
|
пре 6 месеци |
CaIon
|
c8bbf7bed8
feat: Add ContextKeyLocalCountTokens and update ResponseText2Usage to use context in multiple channels
|
пре 6 месеци |
Seefs
|
5010f2d004
format: package name -> github.com/QuantumNous/new-api (#2017)
|
пре 7 месеци |
CaIon
|
1a8d781721
Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"
|
пре 8 месеци |
creamlike1024
|
a45513a7a6
feat: gemini-2.5-flash-image-preview 文本和图片输出计费
|
пре 9 месеци |
CaIon
|
97ea8b6560
refactor: Introduce pre-consume quota and unify relay handlers
|
пре 9 месеци |
CaIon
|
32978f9cd9
✨ feat: Simplify response handling by returning raw response body directly
|
пре 9 месеци |
RedwindA
|
74057324b2
fix typo; add ParamOverride for Gemini Embedding
|
пре 9 месеци |
RedwindA
|
8127ad9929
feat: support native Gemini Embedding
|
пре 9 месеци |
creamlike1024
|
502c5dde9c
Merge remote-tracking branch 'origin/alpha' into ConvertGeminiRequest
|
пре 9 месеци |
creamlike1024
|
689dbfe71a
feat: convert gemini format to openai chat completions
|
пре 9 месеци |
CaIon
|
87c16db2d7
fix: update JSONEditor to default to manual mode for invalid JSON and add error message for invalid data
|
пре 9 месеци |
CaIon
|
de23f66785
fix: handle case where no response is received from Gemini API
|
пре 9 месеци |
CaIon
|
a1caf37f5b
fix: auto ban
|
пре 10 месеци |
CaIon
|
4a9ca4209a
refactor: Introduce standardized API error
|
пре 10 месеци |
CaIon
|
e2c34bdeb9
🐛 fix: refactor JSON unmarshalling across multiple handlers to use UnmarshalJson and UnmarshalJsonStr for consistency
|
пре 11 месеци |
CaIon
|
ae586e1be9
✨ feat: add CloseResponseBodyGracefully function to handle HTTP response body closure
|
пре 11 месеци |
CaIon
|
2c0fd2915b
fix: improve usage calculation in GeminiTextGenerationStreamHandler
|
пре 11 месеци |
CaIon
|
16997a695d
refactor: token counter logic
|
пре 11 месеци |
creamlike1024
|
4f3024ad63
fix: gemini 原生格式流模式中断请求未计费
|
пре 11 месеци |
CaIon
|
8ceaaf7819
fix: update response handling in GeminiTextGenerationStreamHandler
|
пре 11 месеци |
CaIon
|
2b2e0a4777
feat: enhance error handling in GeminiHelper and streamline response processing
|
пре 11 месеци |
creamlike1024
|
1271f8f648
update relay-gemini-native.go
|
пре 11 месеци |
xqx121
|
2541defbf4
Update relay-gemini-native.go
|
пре 11 месеци |
creamlike1024
|
0e9a193ed8
feat: gemini audio input billing
|
пре 11 месеци |