JarvisChan630 commited on
Commit
2c0c67c
β€’
1 Parent(s): 35ec642
agents/legacy/jar3d_agent.py CHANGED
@@ -100,7 +100,7 @@ def set_chat_finished(state: State) -> bool:
100
  final_response_formatted = final_response_formatted.rstrip()
101
 
102
  # print(colored(f"\n\n DEBUG: {final_response_formatted}\n\n", 'green'))
103
- print(colored(f"\n\n Jar3dπŸ‘©β€πŸ’»: {final_response_formatted}", 'cyan'))
104
  state["final_answer"] = f'''{final_response_formatted}'''
105
  else:
106
  print(colored("Error: Could not find '>> FINAL ANSWER:' in the response", 'red'))
 
100
  final_response_formatted = final_response_formatted.rstrip()
101
 
102
  # print(colored(f"\n\n DEBUG: {final_response_formatted}\n\n", 'green'))
103
+ print(colored(f"\n\n JarvisπŸ‘©β€πŸ’»: {final_response_formatted}", 'cyan'))
104
  state["final_answer"] = f'''{final_response_formatted}'''
105
  else:
106
  print(colored("Error: Could not find '>> FINAL ANSWER:' in the response", 'red'))
agents/legacy/jar3d_agent_backup.py CHANGED
@@ -102,7 +102,7 @@ def set_chat_finished(state: State) -> bool:
102
  final_response_formatted = final_response_formatted.rstrip()
103
 
104
  # print(colored(f"\n\n DEBUG: {final_response_formatted}\n\n", 'green'))
105
- print(colored(f"\n\n Jar3dπŸ‘©β€πŸ’»: {final_response_formatted}", 'cyan'))
106
  state["final_answer"] = f'''{final_response_formatted}'''
107
  else:
108
  print(colored("Error: Could not find '>> FINAL ANSWER:' in the response", 'red'))
 
102
  final_response_formatted = final_response_formatted.rstrip()
103
 
104
  # print(colored(f"\n\n DEBUG: {final_response_formatted}\n\n", 'green'))
105
+ print(colored(f"\n\n JarvisπŸ‘©β€πŸ’»: {final_response_formatted}", 'cyan'))
106
  state["final_answer"] = f'''{final_response_formatted}'''
107
  else:
108
  print(colored("Error: Could not find '>> FINAL ANSWER:' in the response", 'red'))
models/llms.py CHANGED
@@ -8,6 +8,7 @@ from utils.logging import log_function, setup_logging
8
  from tenacity import retry, stop_after_attempt, wait_fixed, retry_if_exception_type
9
  from config.load_configs import load_config
10
  from dotenv import load_dotenv
 
11
  load_dotenv()
12
 
13
  setup_logging(level=logging.DEBUG)
 
8
  from tenacity import retry, stop_after_attempt, wait_fixed, retry_if_exception_type
9
  from config.load_configs import load_config
10
  from dotenv import load_dotenv
11
+ from requests.packages.urllib3.util.retry import Retry
12
  load_dotenv()
13
 
14
  setup_logging(level=logging.DEBUG)