Commit 4d428d4
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 4d428d4
3 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
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 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments