Skip to content

Commit

Permalink
Merge pull request #583 from younes-io/patch-1
Browse files Browse the repository at this point in the history
WIP: fix: AzureOpenAI authentication to support API Key auth
  • Loading branch information
slundberg authored Jan 16, 2024
2 parents cf355c7 + e658565 commit d36601b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guidance/models/_azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(
self,
model: str,
azure_endpoint: str,
azure_deployment: str,
azure_ad_token_provider=None,
api_key: str = None,
tokenizer=None,
Expand Down Expand Up @@ -76,6 +77,7 @@ def __init__(
azure_endpoint=azure_endpoint,
api_key=api_key,
azure_ad_token_provider=azure_ad_token_provider,
azure_deployment=azure_deployment,
tokenizer=tokenizer,
echo=echo,
caching=caching,
Expand All @@ -100,6 +102,7 @@ def __init__(
api_key=api_key,
azure_ad_token_provider=azure_ad_token_provider,
api_version=api_version,
azure_deployment=azure_deployment
)
self.model_name = model
self.top_p = top_p
Expand Down

0 comments on commit d36601b

Please sign in to comment.