Commit History

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