fix: gemini embedding

This commit is contained in:
CaIon committed 2025-10-15 21:48:36 +08:00
1 parent f91522b51e
commit 5a10552d69
4 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -300,7 +300,7 @@ func GetAndValidateGeminiRequest(c *gin.Context) (*dto.GeminiChatRequest, error)
if err != nil {
return nil, err
}
if len(request.Contents) == 0 {
if len(request.Contents) == 0 && len(request.Requests) == 0 {
return nil, errors.New("contents is required")
}