Skip to content

Commit 5716ccf

Browse files
committed
change model_opts usage
1 parent e74bfa7 commit 5716ccf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mellea/backends/litellm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def _generate_from_chat_context_standard(
205205
generate_logs: list[GenerateLog] | None = None,
206206
tool_calls: bool = False,
207207
) -> ModelOutputThunk:
208-
model_options = {} if model_options is None else model_options
209208
model_opts = self._simplify_and_merge(model_options)
210209
linearized_context = ctx.linearize()
211210
assert linearized_context is not None, (
@@ -221,7 +220,7 @@ def _generate_from_chat_context_standard(
221220
messages.extend(self.formatter.to_chat_messages([action]))
222221

223222
conversation: list[dict] = []
224-
system_prompt = model_options.get(ModelOption.SYSTEM_PROMPT, "")
223+
system_prompt = model_opts.get(ModelOption.SYSTEM_PROMPT, "")
225224
if system_prompt != "":
226225
conversation.append({"role": "system", "content": system_prompt})
227226
conversation.extend([{"role": m.role, "content": m.content} for m in messages])

0 commit comments

Comments
 (0)