Commit History

Autor SHA1 Mensaxe Data
  CaIon 5238f279db feat: record stream interruption reasons via StreamStatus hai 1 mes
  funkpopo 0aa3dcb56c feat(xai): 为xAI渠道添加/v1/responses支持 (#2897) hai 3 meses
  CaIon 1fededceb3 feat: refactor token estimation logic hai 5 meses
  CaIon c8bbf7bed8 feat: Add ContextKeyLocalCountTokens and update ResponseText2Usage to use context in multiple channels hai 5 meses
  Seefs 5010f2d004 format: package name -> github.com/QuantumNous/new-api (#2017) hai 7 meses
  CaIon c9e9a24e99 refactor: centralize logging and update resource initialization hai 9 meses
  CaIon 97ea8b6560 refactor: Introduce pre-consume quota and unify relay handlers hai 9 meses
  RedwindA 3368b26880 🐛 fix: Add nil check for xaiResponse.Usage before calculating CompletionTokens hai 10 meses
  RedwindA f30a0f7783 🐛 fix: Use correct dto for non-stream xai hai 10 meses
  CaIon 4a9ca4209a refactor: Introduce standardized API error hai 10 meses
  CaIon e2c34bdeb9 🐛 fix: refactor JSON unmarshalling across multiple handlers to use UnmarshalJson and UnmarshalJsonStr for consistency hai 10 meses
  CaIon aae9e81c20 🐛 fix: refactor response body handling in multiple relay handlers to utilize IOCopyBytesGracefully hai 10 meses
  CaIon 6db7a84787 🐛 fix: replace direct response body closure with common.CloseResponseBodyGracefully for improved error handling hai 10 meses
  CaIon ae586e1be9 ✨ feat: add CloseResponseBodyGracefully function to handle HTTP response body closure hai 10 meses
  CaIon 16997a695d refactor: token counter logic hai 10 meses
  CaIon f970a03986 fix: xAI usage hai 1 ano
  CaIon 60a9bd45c6 feat: add xAI handling and response processing hai 1 ano