@@ -119,14 +119,10 @@ def create(self, params: PromptEngineCreateParams) -> PromptEngineCreateResponse
119119
120120 def get (self , id : str ) -> PromptEngineGetResponse :
121121 path = f"/prompt_engine/{ id } "
122- resp = Request (
123- config = self .config , path = path , params = {}, verb = "get"
124- ).perform_with_content ()
122+ resp = Request (config = self .config , path = path , params = {}, verb = "get" ).perform_with_content ()
125123 return resp
126124
127- def list (
128- self , params : Union [PromptEngineListParams , None ] = None
129- ) -> PromptEngineListResponse :
125+ def list (self , params : Union [PromptEngineListParams , None ] = None ) -> PromptEngineListResponse :
130126 if params is None :
131127 params = {}
132128
@@ -141,9 +137,7 @@ def list(
141137 base_path = "/prompt_engine" ,
142138 params = params ,
143139 )
144- resp = Request (
145- config = self .config , path = path , params = {}, verb = "get"
146- ).perform_with_content ()
140+ resp = Request (config = self .config , path = path , params = {}, verb = "get" ).perform_with_content ()
147141 return resp
148142
149143 def delete (self , id : str ) -> PromptEngineDeleteResponse :
@@ -219,9 +213,7 @@ def __init__(
219213 disable_request_logging = disable_request_logging ,
220214 )
221215
222- async def create (
223- self , params : PromptEngineCreateParams
224- ) -> PromptEngineCreateResponse :
216+ async def create (self , params : PromptEngineCreateParams ) -> PromptEngineCreateResponse :
225217 path = "/prompt_engine"
226218 resp = await AsyncRequest (
227219 config = self .config ,
0 commit comments