diff --git a/phi/cli/settings.py b/phi/cli/settings.py index e4626c4409..55cafbce51 100644 --- a/phi/cli/settings.py +++ b/phi/cli/settings.py @@ -50,6 +50,10 @@ def update_signin_url(cls, v, info: FieldValidationInfo): def update_api_url(cls, v, info: FieldValidationInfo): api_runtime = info.data["api_runtime"] if api_runtime == "dev": + from os import getenv + + if getenv("PHI_RUNTIME") == "docker": + return "http://host.docker.internal:7070" return "http://localhost:7070" elif api_runtime == "stg": return "https://api.stgphi.com" diff --git a/pyproject.toml b/pyproject.toml index f0da3b67ed..a5f336532b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "phidata" -version = "2.0.19" +version = "2.0.20" description = "AI Toolkit for Engineers" requires-python = ">=3.7" readme = "README.md"