resolveModel

open suspend override fun resolveModel(model: LLModel, promptExecutorOperation: PromptExecutorOperation): ResolvedModel(source)

Resolves the LLModel to use for the given promptExecutorOperation by selecting a known client for the model's provider, falling back to FallbackPromptExecutorSettings.fallbackModel when no direct client matches.

Throws

If no client is found for the model's provider and no fallback settings are configured.