mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: forward bearer auth when polling azure ocr
This commit is contained in:
parent
56dfe8926e
commit
774e5a7e5e
1 changed files with 3 additions and 1 deletions
|
|
@ -365,7 +365,9 @@ pub(super) async fn poll_document_intelligence(
|
|||
|
||||
let mut request_builder = http_client().get(operation_url);
|
||||
for (key, value) in headers {
|
||||
if key.eq_ignore_ascii_case("ocp-apim-subscription-key") {
|
||||
if key.eq_ignore_ascii_case("ocp-apim-subscription-key")
|
||||
|| key.eq_ignore_ascii_case("authorization")
|
||||
{
|
||||
request_builder = request_builder.header(key, value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue