openAIExecutor

Creates and returns a SingleLLMPromptExecutor bean configured with the given OpenAILLMClient. This bean is conditionally initialized only when an OpenAILLMClient bean is present in the application context.

Return

a configured instance of SingleLLMPromptExecutor.

Parameters

client

the OpenAILLMClient used to create a retry-capable client for executing LLM prompts.