Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): add debugger host CLI flag to specify default base URL #900

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

dqbd
Copy link
Contributor

@dqbd dqbd commented Jul 1, 2024

No description provided.

@@ -117,11 +105,36 @@ def check_capabilities(runner) -> DockerCapabilities:
)


def debugger_compose(*, port: Optional[int] = None, host: Optional[str] = None) -> str:
if port is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this is not very intuitive. could we do this check on host instead?

  • cli option for host: no default in click
  • cli option for port: default to DEFAULT_PORT in click

and below add environment only if host != localhost?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not really for changing the host of the debugger image, rather to change the default URL used by the debugger to access the LangGraph API.

Renamed the CLI flag to closely match the intent.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, that makes sense, thanks for clarifying!

@dqbd dqbd requested a review from vbarda July 8, 2024 15:54
@@ -117,11 +105,36 @@ def check_capabilities(runner) -> DockerCapabilities:
)


def debugger_compose(*, port: Optional[int] = None, host: Optional[str] = None) -> str:
if port is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, that makes sense, thanks for clarifying!

@vbarda vbarda merged commit 293bc2c into main Jul 9, 2024
27 checks passed
@vbarda vbarda deleted the dqbd/debugger-host branch July 9, 2024 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants