Commit a163f50
fix(llms): send UiPath token via Authorization Bearer header in UiPathOpenAI
AzureOpenAI emits the api_key argument as the Azure-style `api-key` header,
which AgentHub's LLMProxy [Authorize] pipeline (JwtBearer/S2S schemes) does
not read, resulting in 401 with no Authorization header on the request.
Bedrock and Vertex wrappers already attach `Authorization: Bearer <token>`
explicitly; align UiPathOpenAI by setting it in default_headers and passing
a placeholder api_key to satisfy the AzureOpenAI constructor.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7b3cfaa commit a163f50
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments