Skip to content

Commit 98703d1

Browse files
committed
refactor: register wrapper methods to MelleaSession
1 parent c9ebf86 commit 98703d1

File tree

2 files changed

+50
-563
lines changed

2 files changed

+50
-563
lines changed

mellea/stdlib/genslot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __call__(
182182

183183
response_model = create_response_format(self._function._func)
184184

185-
response = m.act(slot_copy, format=response_model, model_options=model_options)
185+
response = m.act(slot_copy, format=response_model, model_options=model_options) # type:ignore
186186

187187
function_response: FunctionResponse[R] = response_model.model_validate_json(
188188
response.value # type: ignore
@@ -243,7 +243,7 @@ def __call__(
243243
# they must return a coroutine object.
244244
async def __async_call__() -> R:
245245
# Use the async act func so that control flow doesn't get stuck here in async event loops.
246-
response = await m.aact(
246+
response = await m.aact( # type: ignore
247247
slot_copy, format=response_model, model_options=model_options
248248
)
249249

0 commit comments

Comments
 (0)