LLMConfigEntry

LLMConfigEntry(**data: Any)

!!! abstract “Usage Documentation” Models

A base class for creating Pydantic models.

Parameters:
NameDescription
**dataType: Any

Class Attributes

api_key



api_type



api_version



base_url



default_headers



http_client



max_tokens



model



model_client_cls



model_config



response_format



tags



voice



Static Methods

check_base_url

check_base_url(v: Any, info: ValidationInfo) -> Any
Parameters:
NameDescription
vType: Any
infoType: pydantic_core.core_schema.ValidationInfo

Instance Methods

create_client

create_client(self) -> ModelClient

get

get(
    self,
    key: str,
    default: Any | None = None
) -> Any
Parameters:
NameDescription
keyType: str
defaultType: Any | None

Default: None

items

items(self) -> Iterable[tuple[str, Any]]

keys

keys(self) -> Iterable[str]

model_dump

model_dump(
    self,
    *args: Any,
    exclude_none: bool = True,
    **kwargs: Any
) -> dict[str, Any]

!!! abstract “Usage Documentation” model_dump

Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

Parameters:
NameDescription
*argsType: Any
exclude_noneWhether to exclude fields that have a value of None.

Type: bool

Default: True
**kwargsType: Any
Returns:
TypeDescription
dict[str, typing.Any]A dictionary representation of the model.

model_dump_json

model_dump_json(
    self,
    *args: Any,
    exclude_none: bool = True,
    **kwargs: Any
) -> str

!!! abstract “Usage Documentation” model_dump_json

Generates a JSON representation of the model using Pydantic’s to_json method.

Parameters:
NameDescription
*argsType: Any
exclude_noneWhether to exclude fields that have a value of None.

Type: bool

Default: True
**kwargsType: Any
Returns:
TypeDescription
strA JSON string representation of the model.

serialize_api_key

serialize_api_key(self, v: SecretStr) -> Any
Parameters:
NameDescription
vType: pydantic.types.SecretStr

serialize_base_url

serialize_base_url(self, v: Any) -> Any
Parameters:
NameDescription
vType: Any

values

values(self) -> Iterable[Any]