Skip to content

Commit

Permalink
Fixed nits
Browse files Browse the repository at this point in the history
Signed-off-by: JonahSussman <sussmanjonah@gmail.com>
  • Loading branch information
JonahSussman committed Aug 29, 2024
1 parent fbb7e77 commit 4f184f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ POSTGRES_RUN_ARGS ?=
run-postgres:
$(CONTAINER_RUNTIME) run -it $(POSTGRES_RUN_ARGS) -v data:/var/lib/postgresql/data -e POSTGRES_USER=kai -e POSTGRES_PASSWORD=dog8code -e POSTGRES_DB=kai -p 5432:5432 docker.io/library/postgres:16.3

# FIXME: This does not currently work
run-server:
PYTHONPATH=$(KAI_PYTHON_PATH) python kai/server.py

Expand Down
2 changes: 1 addition & 1 deletion build/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [[ ${MODE} != "importer" ]]; then
# If a custom config is specified, use it
if [[ -f /podman_compose/build/config.toml ]]; then
printf "Using custom config.toml\n"
PYTHONPATH="/kai/kai" python /kai/kai/server.py --config-file /podman_compose/build/config.toml
PYTHONPATH="/kai/kai" python /kai/kai/server.py --config_filepath /podman_compose/build/config.toml
else
PYTHONPATH="/kai/kai" python /kai/kai/server.py
fi
Expand Down
4 changes: 2 additions & 2 deletions kai/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
def get_config():
parser = argparse.ArgumentParser()
parser.add_argument(
"--config-file",
"--config_filepath",
help="Path to an optional config file.",
type=Optional[str],
default=None,
required=False,
)
args = parser.parse_args()

if args.config_file:
if args.config_filepath:
return KaiConfig.model_validate_filepath(args.config_file)

return KaiConfig()
Expand Down

0 comments on commit 4f184f3

Please sign in to comment.