Add feature: Users can load their own downloaded agents or workflows from the myai directory.

This commit is contained in:
Liu Zhicong
2023-09-20 22:47:52 -07:00
parent bde91771a8
commit 080a8918fe
7 changed files with 45 additions and 15 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ class AIAgent:
prompt.append(msg_prompt)
self._format_msg_by_env_value(prompt)
logger.info(f"Agent {self.agent_id} do llm token static system:{system_prompt_len},function:{function_token_len},history:{history_token_len},input:{input_len}")
logger.debug(f"Agent {self.agent_id} do llm token static system:{system_prompt_len},function:{function_token_len},history:{history_token_len},input:{input_len}totoal prompt:{system_prompt_len + function_token_len + history_token_len} ")
task_result:ComputeTaskResult = await ComputeKernel.get_instance().do_llm_completion(prompt,self.llm_model_name,self.max_token_size,inner_functions)
final_result = task_result.result_str