Skip to content

fix: convert image url to base64 for Gemini OpenAI compatibility#2245

Open
Climber2 wants to merge 1 commit intosongquanpeng:mainfrom
Climber2:fix-Gemini-OpenAI-compatibility
Open

fix: convert image url to base64 for Gemini OpenAI compatibility#2245
Climber2 wants to merge 1 commit intosongquanpeng:mainfrom
Climber2:fix-Gemini-OpenAI-compatibility

Conversation

@Climber2
Copy link

解决使用openai的格式请求gemini模型时,因请求中包含图片url而导致的400错误问题。
截屏2025-04-17 19 47 32

我已确认该 PR 已自测通过,相关截图如下:
截屏2025-04-17 19 44 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant