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 1 year ago

azureholic commented 1 year 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 1 year 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.