Commit fc13e56b by 1808837298@qq.com

fix: gemini

parent 8a01e8a7
......@@ -93,11 +93,10 @@ func CovertGemini2OpenAI(textRequest dto.GeneralOpenAIRequest) *GeminiChatReques
Data: data,
},
})
}
else{
} else {
_, format, base64String, err := service.DecodeBase64ImageData(part.ImageUrl.(dto.MessageImageUrl).Url)
if err != nil {
return nil, err
continue
}
parts = append(parts, GeminiPart{
InlineData: &GeminiInlineData{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment