Commit History

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