Documentation
¶
Overview ¶
Package azure provides a ModelProvider adapter for Azure OpenAI. It implements the OpenAI Chat Completions wire format with Azure-specific deployment URL and api-key header authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Provider)
Option is a functional option for configuring a Provider.
func WithAPIKey ¶
WithAPIKey sets the Azure API key for authentication.
func WithHTTPClient ¶
WithHTTPClient sets a custom HTTP client for requests.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements runtime.ModelProvider for Azure OpenAI.
func New ¶
New creates a new Azure OpenAI provider. endpoint: base URL of the Azure instance (e.g., https://myinstance.openai.azure.com) deployment: deployment name for the model apiVersion: API version string (e.g., 2024-08-01-preview)