Skip to content

Commit

Permalink
fix: gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Jul 23, 2024
1 parent b0d9756 commit b8291dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions relay/channel/gemini/relay-gemini.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit b8291dc

Please sign in to comment.