|
|
@@ -2,11 +2,12 @@ package dto
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
- "github.com/gin-gonic/gin"
|
|
|
"one-api/common"
|
|
|
"one-api/logger"
|
|
|
"one-api/types"
|
|
|
"strings"
|
|
|
+
|
|
|
+ "github.com/gin-gonic/gin"
|
|
|
)
|
|
|
|
|
|
type GeminiChatRequest struct {
|
|
|
@@ -273,6 +274,7 @@ type GeminiChatGenerationConfig struct {
|
|
|
ResponseModalities []string `json:"responseModalities,omitempty"`
|
|
|
ThinkingConfig *GeminiThinkingConfig `json:"thinkingConfig,omitempty"`
|
|
|
SpeechConfig json.RawMessage `json:"speechConfig,omitempty"` // RawMessage to allow flexible speech config
|
|
|
+ ImageConfig json.RawMessage `json:"imageConfig,omitempty"` // RawMessage to allow flexible image config
|
|
|
}
|
|
|
|
|
|
type MediaResolution string
|