Class OpenAIClient.Builder

OpenAIClient.Builder class

Builder class for creating an instance of OpenAIClient.

public class Builder

Constructors

NameDescription
Builder(string)Initializes a new instance of the Builder class with the API key.

Methods

NameDescription
Build()Builds and returns an instance of OpenAIClient with the configured options.
WithApiVersion(string)Sets the API version for the client.
WithBaseDomain(string)Sets the base domain for the client.
WithOrganization(string)Sets the organization ID for the client.
WithProject(string)Sets the project ID for the client.

See Also