github QuantumNous/new-api v0.4.0.5

latest releases: v0.9.0, v0.9.0-alpha.17, v0.9.0-alpha.16...
8 months ago

refactor: Enhance error handling in Gemini request conversion

  • Updated CovertGemini2OpenAI function to return an error alongside the GeminiChatRequest, improving error reporting for image processing.
  • Modified ConvertRequest methods in both adaptor.go files to handle potential errors from the Gemini conversion, ensuring robust request handling.
  • Improved clarity and maintainability of the code by explicitly managing error cases during request conversion.

Don't miss a new new-api release

NewReleases is sending notifications on new releases.