Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ def construct_prompty_model_config(
if _is_aoi_model_config(model_config) and user_agent:
prompty_model_config["parameters"]["extra_headers"].update({"x-ms-useragent": user_agent})

if "extra_headers" in model_config:
prompty_model_config["parameters"]["extra_headers"].update(model_config["extra_headers"])

return prompty_model_config


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class OpenAIModelConfiguration(TypedDict):
model: str
base_url: NotRequired[str]
organization: NotRequired[str]
extra_headers: NotRequired[Dict[str, str]]


class AzureAIProject(TypedDict):
Expand Down
Loading
Loading