fix: map base_url to endpoint for Azure credentials - #741
Merged
Conversation
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
Contributor
There was a problem hiding this comment.
1 issue found across 3 files
Confidence score: 4/5
- Safe to merge overall; the only noted issue is a documentation mismatch in
open_notebook/domain/credential.py, which is low severity and not a functional regression. - Most significant concern is potential user confusion: Azure credential docs should clarify that the UI “URL Base”/base_url maps to the Azure endpoint and no separate Endpoint field is required.
- Pay close attention to
open_notebook/domain/credential.py- update Azure credential docs to reflect base_url/endpoint mapping.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="open_notebook/domain/credential.py">
<violation number="1" location="open_notebook/domain/credential.py:79">
P2: Update the Azure credential docs to reflect that the UI “URL Base”/base_url field maps to the Azure endpoint (and that a dedicated Endpoint field is not required when base_url is provided).</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| 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 |
Contributor
There was a problem hiding this comment.
P2: Update the Azure credential docs to reflect that the UI “URL Base”/base_url field maps to the Azure endpoint (and that a dedicated Endpoint field is not required when base_url is provided).
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At open_notebook/domain/credential.py, line 79:
<comment>Update the Azure credential docs to reflect that the UI “URL Base”/base_url field maps to the Azure endpoint (and that a dedicated Endpoint field is not required when base_url is provided).</comment>
<file context>
@@ -76,6 +76,9 @@ def to_esperanto_config(self) -> Dict[str, Any]:
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
</file context>
Antman1526
pushed a commit
to Antman1526/Deeper-Notebook
that referenced
this pull request
Aug 18, 2026
* 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 lfnovo#727 * docs: update Azure credential docs to reflect base_url mapping
Antman1526
pushed a commit
to Antman1526/Deeper-Notebook
that referenced
this pull request
Aug 18, 2026
* 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 lfnovo#727 * docs: update Azure credential docs to reflect base_url mapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
base_urlfrom the UI credential form to Azure'sendpointparameter across connection tester, key provisioner, and Esperanto configapi_versionalready defaults to2024-10-21(current GA version), no change neededChanges
base_urlas fallback forendpointwhen testing Azure connectionsbase_urlas fallback forendpointwhen provisioning Azure env varsto_esperanto_config(), mapbase_url→endpointfor Azure whenendpointis not setCloses #727