ModelRoutingPolicy

class oci.generative_ai.models.ModelRoutingPolicy(**kwargs)

Bases: object

The model routing policy for the routing profile. Routing candidates are selected from the allowed models list.

Methods

__init__(**kwargs) Initializes a new ModelRoutingPolicy object with values from keyword arguments.

Attributes

allowed_models Gets the allowed_models of this ModelRoutingPolicy.
__init__(**kwargs)

Initializes a new ModelRoutingPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:allowed_models (list[str]) – The value to assign to the allowed_models property of this ModelRoutingPolicy.
allowed_models

Gets the allowed_models of this ModelRoutingPolicy. The ordered list of model names the routing candidate is selected from (for example, meta.llama-3-70b-instruct).

The order of entries is preserved. Duplicate entries are not allowed.

Returns:The allowed_models of this ModelRoutingPolicy.
Return type:list[str]