Skip to content

Commit

Permalink
Fix download routing for BASE_URL (#852)
Browse files Browse the repository at this point in the history
* base url handling for download

* no bundles in docker image

* version = "1.12.1"
  • Loading branch information
pascal-pfeiffer authored Sep 12, 2024
1 parent f864b93 commit 7952d0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.github
.mypy_cache
.neptune
bundles
wandb
.pytest_cache
data
Expand Down
4 changes: 4 additions & 0 deletions llm_studio/app_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2143,6 +2143,10 @@ def get_download_link(q: Q, artifact_path):
# behind a reverse proxy or being accessed by a public IP in a public
# cloud.

# add the BASE_URL to the path
if "H2O_CLOUD_ENVIRONMENT" in os.environ:
url_path = f"{os.environ['H2O_WAVE_BASE_URL']}/{url_path}"

return url_path


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "h2o-llmstudio"
version = "1.13.0-dev"
version = "1.12.1"
readme = "README.md"
license = {file = "LICENSE"}

Expand Down

0 comments on commit 7952d0f

Please sign in to comment.