mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-05-27 11:19:32 +08:00
添加 _get_mime_type_and_data 函数从 base64 字符串中提取 MIME 类型和数据 修改 _convert_image 函数使用动态检测的 MIME 类型,而非硬编码 将 _process_text_with_image 中的 MIME 类型从 image/jpeg 改为 image/png 简化异常处理逻辑 优化 OpenAIMessageConverter 中的消息分割逻辑,仅对最后一个 assistant 消息进行分割处理