Skip to content

Commit 8c93788

Browse files
fix: formatting.
1 parent 63cca7b commit 8c93788

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

jigsawstack/embedding_v2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ def __init__(
4747
@overload
4848
def execute(self, params: EmbeddingV2Params) -> EmbeddingV2Response: ...
4949
@overload
50-
def execute(
51-
self, blob: bytes, options: EmbeddingV2Params = None
52-
) -> EmbeddingV2Response: ...
50+
def execute(self, blob: bytes, options: EmbeddingV2Params = None) -> EmbeddingV2Response: ...
5351

5452
def execute(
5553
self,

jigsawstack/prompt_engine.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,10 @@ def create(self, params: PromptEngineCreateParams) -> PromptEngineCreateResponse
120120

121121
def get(self, id: str) -> PromptEngineGetResponse:
122122
path = f"/prompt_engine/{id}"
123-
resp = Request(
124-
config=self.config, path=path, params={}, verb="get"
125-
).perform_with_content()
123+
resp = Request(config=self.config, path=path, params={}, verb="get").perform_with_content()
126124
return resp
127125

128-
def list(
129-
self, params: Union[PromptEngineListParams, None] = None
130-
) -> PromptEngineListResponse:
126+
def list(self, params: Union[PromptEngineListParams, None] = None) -> PromptEngineListResponse:
131127
if params is None:
132128
params = {}
133129

@@ -142,9 +138,7 @@ def list(
142138
base_path="/prompt_engine",
143139
params=params,
144140
)
145-
resp = Request(
146-
config=self.config, path=path, params={}, verb="get"
147-
).perform_with_content()
141+
resp = Request(config=self.config, path=path, params={}, verb="get").perform_with_content()
148142
return resp
149143

150144
def delete(self, id: str) -> PromptEngineDeleteResponse:
@@ -220,9 +214,7 @@ def __init__(
220214
headers=headers,
221215
)
222216

223-
async def create(
224-
self, params: PromptEngineCreateParams
225-
) -> PromptEngineCreateResponse:
217+
async def create(self, params: PromptEngineCreateParams) -> PromptEngineCreateResponse:
226218
path = "/prompt_engine"
227219
resp = await AsyncRequest(
228220
config=self.config,

0 commit comments

Comments
 (0)