@@ -25,6 +25,7 @@ def entry_point() -> None:
2525 help = (f"Location of the config file containing the prompts. Defaults to `{ DEFAULT_CONFIG_FILE } `." ),
2626)
2727@click .option ("--prompt" , type = str , help = ("Which prompt to use" ))
28+ @click .option ("--model" , type = str , default = None , help = ("Which model to use. Must be set in conjunction with --agent." ))
2829@click .option (
2930 "--score" ,
3031 type = int ,
@@ -60,6 +61,7 @@ def run(
6061 agent : str ,
6162 prompt : str ,
6263 prompt_file : str ,
64+ model : str | None ,
6365 score : int | None ,
6466 config_file : str ,
6567 config : str ,
@@ -80,6 +82,7 @@ def run(
8082 "agent" : agent or config_from_file .agent ,
8183 "prompt" : prompt or config_from_file .prompt ,
8284 "score_threshold" : score or config_from_file .score_threshold ,
85+ "model" : model or config_from_file .model ,
8386 }
8487 )
8588
@@ -94,6 +97,7 @@ def run(
9497 dry_run = dry_run ,
9598 project_key = config_from_file .service_desk_project_key ,
9699 request_id_type = config_from_file .service_desk_request_id_type ,
100+ model = final_config .model ,
97101 )
98102 relevant_articles_metadata = [f"{ article .title } ({ article .link } )" for article in relevant_articles ]
99103 logger .warning ("Found these articles: \n - %s" , "\n - " .join (relevant_articles_metadata ))
0 commit comments