pascalvanderheiden / ais-apim-openai

Unleash the power of Azure OpenAI to your application developers in a secure & manageable way with Azure API Management and Azure Developer CLI.
MIT License
33 stars 9 forks source link

OpenAI-ChargebackProxy - Replace or Add the Auth Header #4

Closed azureholic closed 10 months ago

azureholic commented 10 months ago

Replace or Add the Auth Header with a valid bearer token

The current version needs a valid OpenAI API token from the client app The client should at least use a APIM API Key. The proxy needs to swap this token with its own managed identity token or an OpenAI API Key.

azureholic commented 10 months ago

Chargeback Proxy now uses a managed identity to connect to Azure OpenAI TODO: rename the APIM API Key header to "api-key", so for the developer everything works like normal and can use the OpenAI SDK's with zero code changes.