ModelParams¶
-
class
oci.generative_ai_agent_runtime.models.ModelParams(**kwargs)¶ Bases:
objectDetails of model parameters.
Methods
__init__(**kwargs)Initializes a new ModelParams object with values from keyword arguments. Attributes
frequency_penaltyGets the frequency_penalty of this ModelParams. max_tokensGets the max_tokens of this ModelParams. presence_penaltyGets the presence_penalty of this ModelParams. temperatureGets the temperature of this ModelParams. top_kGets the top_k of this ModelParams. top_pGets the top_p of this ModelParams. -
__init__(**kwargs)¶ Initializes a new ModelParams object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - max_tokens (int) – The value to assign to the max_tokens property of this ModelParams.
- temperature (float) – The value to assign to the temperature property of this ModelParams.
- top_p (float) – The value to assign to the top_p property of this ModelParams.
- top_k (int) – The value to assign to the top_k property of this ModelParams.
- frequency_penalty (float) – The value to assign to the frequency_penalty property of this ModelParams.
- presence_penalty (float) – The value to assign to the presence_penalty property of this ModelParams.
-
frequency_penalty¶ Gets the frequency_penalty of this ModelParams. Frequency penalty to reduce repeating tokens.
Returns: The frequency_penalty of this ModelParams. Return type: float
-
max_tokens¶ Gets the max_tokens of this ModelParams. Maximum number of tokens.
Returns: The max_tokens of this ModelParams. Return type: int
-
presence_penalty¶ Gets the presence_penalty of this ModelParams. Presence penalty to encourage new topics.
Returns: The presence_penalty of this ModelParams. Return type: float
-
temperature¶ Gets the temperature of this ModelParams. Sampling temperature.
Returns: The temperature of this ModelParams. Return type: float
-
top_k¶ Gets the top_k of this ModelParams. Top-K sampling parameter.
Returns: The top_k of this ModelParams. Return type: int
-
top_p¶ Gets the top_p of this ModelParams. Nucleus sampling probability.
Returns: The top_p of this ModelParams. Return type: float
-