BtB-ExpC commited on
Commit
25f6928
·
1 Parent(s): 742cd5c

model_choice_key

Browse files
chains/exercises/run_fluster_with_diagnosis.py CHANGED
@@ -69,24 +69,16 @@ async def _async_fluster_with_diagnosis(
69
 
70
  # 1) Generate track0 & track2 in parallel
71
  track0_coro = write_fluster_track(
72
- 0,
73
  user_input_text,
74
- fluster_config["template_write_fluster_a"],
75
- fluster_config["template_write_fluster_b"],
76
- llms.get(model_choice_1, fluster_config["default_llm_a"]),
77
- llms.get(model_choice_2, fluster_config["default_llm_b"]),
78
- fluster_config["template_sanitize"],
79
- fluster_config["llm_sanitize"]
80
  )
81
  track2_coro = write_fluster_track(
82
- 2,
83
  user_input_text,
84
- fluster_config["template_write_fluster_a"],
85
- fluster_config["template_write_fluster_b"],
86
- llms.get(model_choice_1, fluster_config["default_llm_a"]),
87
- llms.get(model_choice_2, fluster_config["default_llm_b"]),
88
- fluster_config["template_sanitize"],
89
- fluster_config["llm_sanitize"]
90
  )
91
 
92
  (t0_idx, track0_text), (t2_idx, track2_text) = await asyncio.gather(track0_coro, track2_coro)
 
69
 
70
  # 1) Generate track0 & track2 in parallel
71
  track0_coro = write_fluster_track(
 
72
  user_input_text,
73
+ model_choice_1,
74
+ fluster_config,
75
+ 0
 
 
 
76
  )
77
  track2_coro = write_fluster_track(
 
78
  user_input_text,
79
+ model_choice_2,
80
+ fluster_config,
81
+ 2
 
 
 
82
  )
83
 
84
  (t0_idx, track0_text), (t2_idx, track2_text) = await asyncio.gather(track0_coro, track2_coro)