nat.embedder.openai_embedder#
Classes#
An OpenAI LLM provider to be used with an LLM client. |
Functions#
|
Module Contents#
- class OpenAIEmbedderModelConfig(/, **data: Any)#
Bases:
nat.data_models.embedder.EmbedderBaseConfig,nat.data_models.retry_mixin.RetryMixinAn OpenAI LLM provider to be used with an LLM client.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- async openai_embedder_model(
- config: OpenAIEmbedderModelConfig,
- _builder: nat.builder.builder.Builder,