mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-21 17:56:38 +08:00
fix: gemini
This commit is contained in:
parent
b0d9756c14
commit
b8291dcd13
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user