mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-08 21:28:05 -05:00
always pass tool variables to prompt
This commit is contained in:
@@ -518,6 +518,10 @@ class LocalLLMClient:
|
||||
message = "No tools were provided. If the user requests you interact with a device, tell them you are unable to do so."
|
||||
render_variables["tools"] = [message]
|
||||
render_variables["formatted_tools"] = message
|
||||
else:
|
||||
# Tools are passed via the API not the prompt
|
||||
render_variables["tools"] = []
|
||||
render_variables["formatted_tools"] = ""
|
||||
|
||||
# only pass examples if there are loaded examples + an API was exposed
|
||||
if self.in_context_examples and llm_api:
|
||||
|
||||
Reference in New Issue
Block a user