mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-05-03 05:40:36 +00:00
fix: map base_url to endpoint for Azure credentials (#741)
* fix: map base_url to endpoint for Azure credentials The Azure credential form only exposes a base_url field, but the connection tester, key provisioner, and Esperanto config all expect an endpoint field. This maps base_url to endpoint for Azure providers so credentials work without requiring a dedicated endpoint form field. Closes #727 * docs: update Azure credential docs to reflect base_url mapping
This commit is contained in:
parent
ade4adc0b2
commit
4222329451
4 changed files with 19 additions and 16 deletions
|
|
@ -76,6 +76,9 @@ class Credential(ObjectModel):
|
|||
config["api_key"] = self.api_key.get_secret_value()
|
||||
if self.base_url:
|
||||
config["base_url"] = self.base_url
|
||||
# For Azure, base_url from the UI form maps to endpoint
|
||||
if self.provider and self.provider.lower() == "azure" and not self.endpoint:
|
||||
config["endpoint"] = self.base_url
|
||||
if self.endpoint:
|
||||
config["endpoint"] = self.endpoint
|
||||
if self.api_version:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue