Skip to content

Commit

Permalink
Fix config cli type from Path -> str
Browse files Browse the repository at this point in the history
Config parameter in `dev` was typed as pathlib.Path, but it is actually
a string. We need to manually create a Path from the string when parsing
the config.
  • Loading branch information
beowulf11 committed Dec 16, 2024
1 parent 87fba0e commit 721945b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/cli/langgraph_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def dev(
host: str,
port: int,
no_reload: bool,
config: pathlib.Path,
config: str,
n_jobs_per_worker: Optional[int],
no_browser: bool,
debug_port: Optional[int],
Expand Down Expand Up @@ -594,7 +594,7 @@ def dev(
"Please ensure langgraph-cli is installed with the 'inmem' extra: pip install -U \"langgraph-cli[inmem]\""
) from None

config_json = langgraph_cli.config.validate_config_file(config)
config_json = langgraph_cli.config.validate_config_file(pathlib.Path(config))
cwd = os.getcwd()
sys.path.append(cwd)
dependencies = config_json.get("dependencies", [])
Expand Down

0 comments on commit 721945b

Please sign in to comment.