resolveModel
open suspend fun resolveModel(model: LLModel, promptExecutorOperation: PromptExecutorOperation): ResolvedModel(source)
Resolves the requested model to a ResolvedModel to actually use for the given promptExecutorOperation.
Implementations may swap the requested model for a different one (e.g. a fallback) based on availability. The default implementation returns the requested model unchanged.
Return
A ResolvedModel wrapping the effective model to use.
Parameters
model
The requested LLModel to resolve.
promptExecutorOperation
The operation the resolved model will be used for.
Throws
If the requested model cannot be resolved.