simpleAzureOpenAIExecutor

fun simpleAzureOpenAIExecutor(resourceName: String, deploymentName: String, version: AzureOpenAIServiceVersion, apiToken: String): SingleLLMPromptExecutor(source)

Creates an instance of SingleLLMPromptExecutor with an OpenAILLMClient configured for Azure OpenAI.

Return

A new instance of SingleLLMPromptExecutor configured with the OpenAILLMClient for Azure OpenAI.

Parameters

resourceName

The name of the Azure OpenAI resource.

deploymentName

The name of the deployment within the Azure OpenAI resource.

version

The version of the Azure OpenAI Service to use.

apiToken

The API token used for authentication with the Azure OpenAI service.


Creates an instance of SingleLLMPromptExecutor with an OpenAILLMClient configured for Azure OpenAI.

Return

A new instance of SingleLLMPromptExecutor configured with the OpenAILLMClient for Azure OpenAI.

Parameters

baseUrl

The base URL for the Azure OpenAI service.

version

The version of the Azure OpenAI Service to use.

apiToken

The API token used for authentication with the Azure OpenAI service.