Skip to content

Commit

Permalink
Fix client
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonmeso committed Feb 27, 2024
1 parent 0ce4d0a commit 765bdd6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions giza_actions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests
from giza import API_HOST
from giza.client import DeploymentsClient, WorkspaceClient
from giza.client import EndpointsClient, WorkspaceClient

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -45,7 +45,7 @@ def get_deployment_uri(model_id: int, version_id: int):
Returns:
str: The URI of the deployment.
"""
client = DeploymentsClient(API_HOST)
client = EndpointsClient(API_HOST)
deployments_list = client.list(model_id, version_id)

deployments = deployments_list.__root__
Expand Down
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "giza-actions"
version = "0.2.0"
version = "0.2.1"

description = "A Python SDK for Giza platform"
authors = [
Expand All @@ -22,7 +22,7 @@ prefect-gcp = "^0.5.4"
pyyaml = "^6.0.1"
prefect-docker = "^0.4.1"
distlib = "^0.3.8"
giza-cli = ">=0.12.2,<1.0.0"
giza-cli = ">=0.13.0,<1.0.0"
giza-osiris = ">=0.2.5,<1.0.0"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit 765bdd6

Please sign in to comment.