David Manouchehri

Results 439 comments of David Manouchehri

> but when i pass via azure_ad_token, even if auth contains the right credentials - the request fails with a 401 Are you passing an AD token or API key?...

For the unit test, 3cd3491920fa64c9e7c9635478f05615d132cafb solved it. Leaving this ticket open so we can decide later if this is a bug, or just an undocumented behaviour.

https://www.ai.moda/en/blog/enforcing-azure-ad-on-openai ^ This is how I created and enforced Azure AD on an Azure OpenAI resource.

Agreed, or alternatively maybe print the `api_base` in brackets?

@krrishdholakia It looks like @xingyaoww is asking about Workload Identity Federation, since https://cloud.google.com/iam/docs/workload-identity-federation#providers was linked. I don't think any of the existing code in vertex_httpx.py handles that?

Having both `Authorization` and `api_key` confuses me a bit. Could you try dropping the `Authorization` header?