Historique des commits

Auteur SHA1 Message Date
  funkpopo 75e533edb0 feat(xai): 为xAI渠道添加/v1/responses支持 (#2897) il y a 1 mois
  CaIon f5b409d74f feat: refactor token estimation logic il y a 4 mois
  CaIon 84745d5ca4 feat: Add ContextKeyLocalCountTokens and update ResponseText2Usage to use context in multiple channels il y a 4 mois
  Seefs e1c7a4f41f format: package name -> github.com/QuantumNous/new-api (#2017) il y a 5 mois
  CaIon 6748b006b7 refactor: centralize logging and update resource initialization il y a 7 mois
  CaIon e2037ad756 refactor: Introduce pre-consume quota and unify relay handlers il y a 7 mois
  RedwindA b7c3ad0867 🐛 fix: Add nil check for xaiResponse.Usage before calculating CompletionTokens il y a 8 mois
  RedwindA ea3545cc7e 🐛 fix: Use correct dto for non-stream xai il y a 8 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 9 mois
  CaIon 1f4cf07b63 🐛 fix: refactor response body handling in multiple relay handlers to utilize IOCopyBytesGracefully il y a 9 mois
  CaIon 281054ff4c 🐛 fix: replace direct response body closure with common.CloseResponseBodyGracefully for improved error handling il y a 9 mois
  CaIon 3002659f47 ✨ feat: add CloseResponseBodyGracefully function to handle HTTP response body closure il y a 9 mois
  CaIon a9e5d99ea3 refactor: token counter logic il y a 9 mois
  CaIon ef8ae4db80 fix: xAI usage il y a 11 mois
  CaIon 8723e3f239 feat: add xAI handling and response processing il y a 1 an