We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1d10d commit 9ce6369Copy full SHA for 9ce6369
jigsawstack/prompt_engine.py
@@ -73,13 +73,17 @@ def get(self, id:str) -> PromptEngineGetResponse:
73
path=path,params={},verb="get").perform_with_content()
74
return resp
75
76
- def list(self, params:PromptEngineListParams) -> PromptEngineListResponse:
+ def list(self, params:Union[PromptEngineListParams, None] = None) -> PromptEngineListResponse:
77
78
- if params.get('limit') is None:
+ if params is None:
79
+ params = {}
80
+
81
+ # Default limit and page to 20 and 1 respectively
82
+ if params.get('limit') is None:
83
params['limit'] = 20
84
85
if params.get('page') is None:
- params['page'] = 1
86
+ params['page'] = 0
87
88
89
limit = params.get('limit')
0 commit comments