Browse Source

fix: jsonRaw

Seefs 5 months ago
parent
commit
f4d95bf1c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dto/gemini.go

+ 1 - 1
dto/gemini.go

@@ -261,7 +261,7 @@ type GeminiChatGenerationConfig struct {
 	CandidateCount     int                   `json:"candidateCount,omitempty"`
 	StopSequences      []string              `json:"stopSequences,omitempty"`
 	ResponseMimeType   string                `json:"responseMimeType,omitempty"`
-	ResponseSchema     json.RawMessage       `json:"responseSchema,omitempty"`
+	ResponseSchema     any                   `json:"responseSchema,omitempty"`
 	ResponseJsonSchema json.RawMessage       `json:"responseJsonSchema,omitempty"`
 	PresencePenalty    *float32              `json:"presencePenalty,omitempty"`
 	FrequencyPenalty   *float32              `json:"frequencyPenalty,omitempty"`