Skip to content

Commit 97260a8

Browse files
committed
corrected GetAIModel query in sdk
1 parent 8ff5bcb commit 97260a8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dataspace_sdk/resources/aimodels.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def get_by_id_graphql(self, model_id: str) -> Dict[str, Any]:
8686
Dictionary containing AI model information
8787
"""
8888
query = """
89-
query GetAIModel($id: UUID!) {
90-
aiModel(id: $id) {
89+
query GetAIModel($id: Int!) {
90+
getAiModel(modelId: $id) {
9191
id
9292
name
9393
displayName
@@ -128,7 +128,6 @@ def get_by_id_graphql(self, model_id: str) -> Dict[str, Any]:
128128
}
129129
endpoints {
130130
id
131-
name
132131
url
133132
httpMethod
134133
authType

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ zipp==3.18.1
6969
snapshot-selenium==0.0.2
7070
selenium==4.16.0 # Downgraded for compatibility
7171

72+
psycopg2-binary
73+
tenacity
74+
torch
75+
7276
# Security and Environment Management
7377
python-decouple==3.8
7478
django-debug-toolbar==4.2.0 # Downgraded for better Django compatibility

0 commit comments

Comments
 (0)