resolveModel

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

Resolves the LLModel to use for the given promptExecutorOperation by checking whether the router has a 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 is configured.