Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Azure OpenAI models #347

Open
yuzisun opened this issue Feb 16, 2025 · 0 comments
Open

Support Azure OpenAI models #347

yuzisun opened this issue Feb 16, 2025 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@yuzisun
Copy link
Contributor

yuzisun commented Feb 16, 2025

Description:
Support Azure OpenAI Service for GPT-4o, o1 series models.

Authentication

https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#authentication

  • API Key using the api-key HTTP header
  • Microsoft Entra Token: Authentication tokens are included in a request as the Authorization header, the token can be retrieved using the following environment variables by callingget_bearer_token_provider from azure sdk
    • AZURE_CLIENT_ID=xxx
    • AZURE_TENANT_ID=xxx
    • AZURE_CLIENT_SECRET=xxx

Data Plane API

Control Plane API

// BackendSecurityPolicyAzureCredentials contains the supported authentication mechanisms to access azure AI services
type BackendSecurityPolicyAzureCredentials struct {
	// Region specifies the Azure region associated with the policy.
	//
	// +kubebuilder:validation:MinLength=1
	Region string `json:"region"`

	// ClientId is a unique identifier assigned to a registered application
	// +optional
	ClientId string `json:"clientId"`

        // TenantId is a unique identifier for an Azure Active Directory tenant
	//
	// +optional
	TenantId string `json:"tenantId"`

        // ClientSecret is a confidential secret generated for the application
	//
	// +optional
	ClientSecret gwapiv1.SecretObjectReference `json:"clientSecret"`
}

[optional Relevant Links:]
https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions

@yuzisun yuzisun added the enhancement New feature or request label Feb 16, 2025
@yuzisun yuzisun added this to the v0.2.0 milestone Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant