OpenAIModels class
OpenAI Model Listing capability implementation
This module handles model listing and information retrieval for OpenAI providers.
- Implemented types
Constructors
- OpenAIModels.new(OpenAIClient client, OpenAIConfig config)
Properties
- client → OpenAIClient
-
final
- config → OpenAIConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAudioModels(
) → Future< List< AIModel> > - Get models suitable for audio/speech
-
getChatModels(
) → Future< List< AIModel> > - Get models suitable for chat
-
getEmbeddingModels(
) → Future< List< AIModel> > - Get models suitable for embeddings
-
getFineTunedModels(
) → Future< List< AIModel> > - Get fine-tuned models
-
getImageModels(
) → Future< List< AIModel> > - Get models suitable for image generation
-
getModel(
String modelId) → Future< AIModel?> - Get a specific model by ID
-
getModelPricing(
String modelId) → Map< String, dynamic> - Get model pricing information (if available)
-
getModelsByOwner(
String owner) → Future< List< AIModel> > - Get models by owner
-
getOpenAIModels(
) → Future< List< AIModel> > - Get OpenAI models only
-
getRecommendedModel(
String useCase) → Future< AIModel?> - Get recommended model for a specific use case
-
modelExists(
String modelId) → Future< bool> - Check if a model exists and is accessible
-
models(
) → Future< List< AIModel> > -
Get available models from the provider
override
-
modelSupportsCapability(
String modelId, String capability) → Future< bool> - Check if a model supports a specific capability
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited