Skip to content

Commit

Permalink
update vertex javadocs to match what's live (#6149)
Browse files Browse the repository at this point in the history
Co-authored-by: David Motsonashvili <davidmotson@google.com>
  • Loading branch information
davidmotson and David Motsonashvili authored Aug 1, 2024
1 parent 99a9d93 commit 0605925
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ package com.google.firebase.vertexai.type
* @property candidateCount The max *unique* responses to return
* @property maxOutputTokens The max tokens to generate per response
* @property stopSequences A list of strings to stop generation on occurrence of
* @property responseMimeType Response type for generated candidate text. See the
* [vertex docs](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/GenerationConfig)
* @property responseMimeType Response MIME type for the generated candidate text. For a list of
* supported response MIME types, see the
* [Vertex AI documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/GenerationConfig#FIELDS.response_mime_type)
* for a list of supported types.
* @property responseSchema A schema that the response must adhere to, used with the
* `application/json` mimeType.
* `application/json` MINE type.
*/
class GenerationConfig
private constructor(
Expand All @@ -55,7 +56,6 @@ private constructor(
* @property candidateCount The max *unique* responses to return
* @property maxOutputTokens The max tokens to generate per response
* @property stopSequences A list of strings to stop generation on occurrence of
*
* @see [generationConfig]
*/
class Builder {
Expand All @@ -78,15 +78,14 @@ private constructor(
maxOutputTokens = maxOutputTokens,
stopSequences = stopSequences,
responseMimeType = responseMimeType,
responseSchema = responseSchema
responseSchema = responseSchema,
)
}

companion object {

/**
* Alternative casing for [GenerationConfig.Builder]:
*
* ```
* val config = GenerationConfig.builder()
* ```
Expand Down

0 comments on commit 0605925

Please sign in to comment.