feat(relay): add debug logging for Gemini request body and introduce flexible speech configuration

This commit is contained in:
CaIon
2025-06-18 20:50:13 +08:00
parent 0b9b21eafd
commit 7572e791f6
2 changed files with 5 additions and 0 deletions

View File

@@ -140,6 +140,7 @@ type GeminiChatGenerationConfig struct {
Seed int64 `json:"seed,omitempty"`
ResponseModalities []string `json:"responseModalities,omitempty"`
ThinkingConfig *GeminiThinkingConfig `json:"thinkingConfig,omitempty"`
SpeechConfig json.RawMessage `json:"speechConfig,omitempty"` // RawMessage to allow flexible speech config
}
type GeminiChatCandidate struct {