fix: resolve issue with cot_agent_runner not analyzing user-uploaded images correctly (#5360)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Xiao Ley
2024-06-18 18:15:41 +08:00
committed by GitHub
parent 4e3d76a1d1
commit 369a395ee9
2 changed files with 23 additions and 9 deletions

View File

@@ -61,8 +61,6 @@ class CotAgentRunner(BaseAgentRunner, ABC):
# convert tools into ModelRuntime Tool format
tool_instances, self._prompt_messages_tools = self._init_prompt_tools()
prompt_messages = self._organize_prompt_messages()
function_call_state = True
llm_usage = {
'usage': None