@@ -60,7 +60,8 @@ def ask_holmes(event: ExecutionBaseEvent, params: AIInvestigateParams):
6060 context = params .context if params .context else {},
6161 include_tool_calls = True ,
6262 include_tool_call_results = True ,
63- sections = params .sections
63+ sections = params .sections ,
64+ model = params .model
6465 )
6566
6667 if params .stream :
@@ -287,6 +288,7 @@ def holmes_issue_chat(event: ExecutionBaseEvent, params: HolmesIssueChatParams):
287288 conversation_history = params .conversation_history ,
288289 investigation_result = params .context .investigation_result ,
289290 issue_type = params .context .issue_type ,
291+ model = params .model
290292 )
291293 result = requests .post (f"{ holmes_url } /api/issue_chat" , data = holmes_req .json ())
292294 result .raise_for_status ()
@@ -336,7 +338,7 @@ def holmes_chat(event: ExecutionBaseEvent, params: HolmesChatParams):
336338 cluster_name = event .get_context ().cluster_name
337339
338340 try :
339- holmes_req = HolmesChatRequest (ask = params .ask , conversation_history = params .conversation_history )
341+ holmes_req = HolmesChatRequest (ask = params .ask , conversation_history = params .conversation_history , model = params . model )
340342 result = requests .post (f"{ holmes_url } /api/chat" , data = holmes_req .json ())
341343 result .raise_for_status ()
342344 holmes_result = HolmesChatResult (** json .loads (result .text ))
@@ -380,11 +382,12 @@ def holmes_workload_chat(event: ExecutionBaseEvent, params: HolmesWorkloadHealth
380382 ask = params .ask ,
381383 conversation_history = params .conversation_history ,
382384 workload_health_result = params .workload_health_result ,
383- resource = params .resource
385+ resource = params .resource ,
386+ model = params .model
384387 )
385388 result = requests .post (f"{ holmes_url } /api/workload_health_chat" , data = holmes_req .json ())
386389 result .raise_for_status ()
387-
390+
388391 holmes_result = HolmesChatResult (** json .loads (result .text ))
389392
390393 finding = Finding (
0 commit comments