Skip to content

Commit

Permalink
AzureOpenAI: api_base and azure_endpoint are mutually exclusive (#18037)
Browse files Browse the repository at this point in the history
  • Loading branch information
martimfasantos authored Mar 6, 2025
1 parent bf358fa commit fa51d5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ def __init__(
if engine is None:
raise ValueError("You must specify an `engine` parameter.")

azure_endpoint = get_from_param_or_env(
"azure_endpoint", azure_endpoint, "AZURE_OPENAI_ENDPOINT", ""
)
if api_base is None:
azure_endpoint = get_from_param_or_env(
"azure_endpoint", azure_endpoint, "AZURE_OPENAI_ENDPOINT", ""
)

super().__init__(
engine=engine,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-llms-azure-openai"
readme = "README.md"
version = "0.3.1"
version = "0.3.2"

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
Expand Down

0 comments on commit fa51d5a

Please sign in to comment.