mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
[feat]: Added a argument which allows gpt4 only mode and configure the fast_llm_model accordingly
This commit is contained in:
@@ -265,6 +265,7 @@ def parse_arguments():
|
|||||||
parser.add_argument('--speak', action='store_true', help='Enable Speak Mode')
|
parser.add_argument('--speak', action='store_true', help='Enable Speak Mode')
|
||||||
parser.add_argument('--debug', action='store_true', help='Enable Debug Mode')
|
parser.add_argument('--debug', action='store_true', help='Enable Debug Mode')
|
||||||
parser.add_argument('--gpt3only', action='store_true', help='Enable GPT3.5 Only Mode')
|
parser.add_argument('--gpt3only', action='store_true', help='Enable GPT3.5 Only Mode')
|
||||||
|
parser.add_argument('--gpt4only', action='store_true', help='Enable GPT4 Only Mode')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.continuous:
|
if args.continuous:
|
||||||
@@ -287,6 +288,10 @@ def parse_arguments():
|
|||||||
print_to_console("GPT3.5 Only Mode: ", Fore.GREEN, "ENABLED")
|
print_to_console("GPT3.5 Only Mode: ", Fore.GREEN, "ENABLED")
|
||||||
cfg.set_smart_llm_model(cfg.fast_llm_model)
|
cfg.set_smart_llm_model(cfg.fast_llm_model)
|
||||||
|
|
||||||
|
if args.gpt4only:
|
||||||
|
print_to_console("GPT4 Only Mode: ", Fore.GREEN, "ENABLED")
|
||||||
|
cfg.set_fast_llm_model(cfg.smart_llm_model)
|
||||||
|
|
||||||
if args.debug:
|
if args.debug:
|
||||||
print_to_console("Debug Mode: ", Fore.GREEN, "ENABLED")
|
print_to_console("Debug Mode: ", Fore.GREEN, "ENABLED")
|
||||||
cfg.set_debug_mode(True)
|
cfg.set_debug_mode(True)
|
||||||
|
|||||||
Reference in New Issue
Block a user