@@ -25,11 +25,12 @@ package com.google.firebase.vertexai.type
25
25
* @property candidateCount The max *unique* responses to return
26
26
* @property maxOutputTokens The max tokens to generate per response
27
27
* @property stopSequences A list of strings to stop generation on occurrence of
28
- * @property responseMimeType Response type for generated candidate text. See the
29
- * [vertex docs](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/GenerationConfig)
28
+ * @property responseMimeType Response MIME type for the generated candidate text. For a list of
29
+ * supported response MIME types, see the
30
+ * [Vertex AI documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/GenerationConfig#FIELDS.response_mime_type)
30
31
* for a list of supported types.
31
32
* @property responseSchema A schema that the response must adhere to, used with the
32
- * `application/json` mimeType .
33
+ * `application/json` MINE type .
33
34
*/
34
35
class GenerationConfig
35
36
private constructor (
@@ -55,7 +56,6 @@ private constructor(
55
56
* @property candidateCount The max *unique* responses to return
56
57
* @property maxOutputTokens The max tokens to generate per response
57
58
* @property stopSequences A list of strings to stop generation on occurrence of
58
- *
59
59
* @see [generationConfig]
60
60
*/
61
61
class Builder {
@@ -78,15 +78,14 @@ private constructor(
78
78
maxOutputTokens = maxOutputTokens,
79
79
stopSequences = stopSequences,
80
80
responseMimeType = responseMimeType,
81
- responseSchema = responseSchema
81
+ responseSchema = responseSchema,
82
82
)
83
83
}
84
84
85
85
companion object {
86
86
87
87
/* *
88
88
* Alternative casing for [GenerationConfig.Builder]:
89
- *
90
89
* ```
91
90
* val config = GenerationConfig.builder()
92
91
* ```
0 commit comments