Skip to content

Commit 1173e5b

Browse files
committed
Linting
1 parent f687719 commit 1173e5b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

jac-mtllm/mtllm/aott.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,19 @@ def aott_raise(
137137
# parameters to custom models
138138
# custom model should override the __call__ method to
139139
# accept function_inputs parameter
140-
return model(meaning_typed_input, media=media, function_inputs=inputs_information, **model_params) # type: ignore
141-
except TypeError as e:
142-
# this is for backward compatibility, for any existing custom models that do not have the function_inputs parameter
143-
return model(meaning_typed_input, media=media, **model_params) # type: ignore
140+
return model(
141+
meaning_typed_input, # type: ignore
142+
media=media, # type: ignore
143+
function_inputs=inputs_information, # type: ignore
144+
**model_params,
145+
)
146+
except TypeError:
147+
# this is for backward compatibility,
148+
# for any existing custom models that do not have the
149+
# function_inputs parameter
150+
return model(
151+
meaning_typed_input, media=media, **model_params # type: ignore
152+
)
144153
else:
145154
return model(meaning_typed_input, media=media, **model_params) # type: ignore
146155

0 commit comments

Comments
 (0)