Skip to content

Commit 3bf5221

Browse files
Expose also the hostingPlatform for InferenceAPIInfo.
1 parent 2ee5b60 commit 3bf5221

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

singlestoredb/management/inference_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class InferenceAPIInfo(object):
2323
name: str
2424
connection_url: str
2525
project_id: str
26+
hosting_platform: str
2627

2728
def __init__(
2829
self,
@@ -31,12 +32,14 @@ def __init__(
3132
name: str,
3233
connection_url: str,
3334
project_id: str,
35+
hosting_platform: str,
3436
):
3537
self.service_id = service_id
3638
self.connection_url = connection_url
3739
self.model_name = model_name
3840
self.name = name
3941
self.project_id = project_id
42+
self.hosting_platform = hosting_platform
4043

4144
@classmethod
4245
def from_dict(
@@ -62,6 +65,7 @@ def from_dict(
6265
model_name=obj['modelName'],
6366
name=obj['name'],
6467
connection_url=obj['connectionURL'],
68+
hosting_platform=obj['hostingPlatform'],
6569
)
6670
return out
6771

0 commit comments

Comments
 (0)