Skip to content

Commit

Permalink
[FIX] Add additional headers for azure model
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 66ecb3e2c7a100c15220c319cc3a60e514b5dd7c
  • Loading branch information
matthewgrossman committed Dec 23, 2024
1 parent 5f66cfc commit 3b234fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gretel_client/inference_api/third_party/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def _create_stream_from_oai_endpoint(
extra_body={
"gretel": params.gretel_metadata,
},
extra_headers={
"azureml-maas-model": params.model,
"extra-parameters": "pass-through",
},
)

metadata = ResponseMetadata()
Expand Down

0 comments on commit 3b234fc

Please sign in to comment.