Class ClientUtility
- Namespace
- AntRunnerLib
- Assembly
- AntRunnerLib.dll
Utility class for managing the OpenAI client.
public class ClientUtility
- Inheritance
-
System.ObjectClientUtility
- Inherited Members
-
System.Object.Equals(System.Object)System.Object.Equals(System.Object, System.Object)System.Object.GetHashCode()System.Object.GetType()System.Object.MemberwiseClone()System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ToString()
Methods
GetOpenAIClient(AzureOpenAIConfig)
Gets the OpenAI client with the specified configuration.
public static OpenAIService GetOpenAIClient(AzureOpenAIConfig azureOpenAIConfig)
Parameters
azureOpenAIConfigAzureOpenAIConfigThe Azure OpenAI configuration.
Returns
- OpenAIService
The OpenAI client.