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 bothadaptor.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.