Skip to content

Commit 9f409d2

Browse files
committed
Fixes, full feedback loop working
1 parent 8fa60f8 commit 9f409d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/chatfaq_sdk/agents/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def set_prompt(
136136
):
137137
self.prompt = await sdk.query_prompt_default(prompt_name, default_prompt)
138138

139-
async def tool_use_loop(self, sdk: ChatFAQSDK, ctx: dict, tools: List[Callable], logging=False):
139+
async def tool_use_loop(self, sdk: ChatFAQSDK, llm: str, ctx: dict, tools: List[Callable], logging=False):
140140
if logging:
141141
logger.info("\n" + "-" * 50 + " TOOL USE LOOP \n")
142142
logger.info("\033[42m" + "\033[30m tools \033[0m")
@@ -151,7 +151,7 @@ async def tool_use_loop(self, sdk: ChatFAQSDK, ctx: dict, tools: List[Callable],
151151

152152
response = await llm_request(
153153
sdk,
154-
os.getenv("LLM"),
154+
llm,
155155
use_conversation_context=False,
156156
conversation_id=ctx["conversation_id"],
157157
bot_channel_name=ctx["bot_channel_name"],

0 commit comments

Comments
 (0)