diff --git a/google/genai/types.py b/google/genai/types.py index 24d739ee8..d07cc7e16 100644 --- a/google/genai/types.py +++ b/google/genai/types.py @@ -6473,7 +6473,7 @@ class GenerateContentConfig(_common.BaseModel): """, ) top_p: Optional[float] = Field( - default=None, + default=0.95, description="""Tokens are selected from the most to least probable until the sum of their probabilities equals this value. Use a lower value for less random responses and a higher value for more random responses. @@ -10914,7 +10914,7 @@ class Model(_common.BaseModel): dataset was saved. This value is used to tune the degree of randomness.""", ) top_p: Optional[float] = Field( - default=None, + default=0.95, description="""Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive @@ -11504,7 +11504,7 @@ class GenerationConfig(_common.BaseModel): description="""Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.""", ) top_p: Optional[float] = Field( - default=None, + default=0.95, description="""Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It's recommended to adjust either temperature or `top_p`, but not both.""", ) enable_enhanced_civic_answers: Optional[bool] = Field( @@ -21582,7 +21582,7 @@ class LiveConnectConfig(_common.BaseModel): """, ) top_p: Optional[float] = Field( - default=None, + default=0.95, description="""Tokens are selected from the most to least probable until the sum of their probabilities equals this value. Use a lower value for less random responses and a higher value for more random responses.