File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 ])
You can’t perform that action at this time.
0 commit comments