VibecoderMcSwaggins commited on
Commit
87feaa7
Β·
1 Parent(s): 73d9747

fix(ui): clarify mode compatibility in radio button info

Browse files

Old: "⚑ Simple: Fast (Free/Any Key) | πŸ”¬ Advanced: Deep Multi-Agent (OpenAI Key Only)"
New: "⚑ Simple: Free/OpenAI/Anthropic | πŸ”¬ Advanced: OpenAI only"

Explicitly lists all supported backends for Simple mode so Anthropic
users know they're not locked out.

Files changed (2) hide show
  1. src/app.py +1 -4
  2. tests/unit/test_ui_elements.py +1 -3
src/app.py CHANGED
@@ -225,10 +225,7 @@ def create_demo() -> tuple[gr.ChatInterface, gr.Accordion]:
225
  choices=["simple", "advanced"],
226
  value="simple",
227
  label="Orchestrator Mode",
228
- info=(
229
- "⚑ Simple: Fast (Free/Any Key) | "
230
- "πŸ”¬ Advanced: Deep Multi-Agent (OpenAI Key Only)"
231
- ),
232
  ),
233
  gr.Textbox(
234
  label="πŸ”‘ API Key (Optional)",
 
225
  choices=["simple", "advanced"],
226
  value="simple",
227
  label="Orchestrator Mode",
228
+ info="⚑ Simple: Free/OpenAI/Anthropic | πŸ”¬ Advanced: OpenAI only",
 
 
 
229
  ),
230
  gr.Textbox(
231
  label="πŸ”‘ API Key (Optional)",
tests/unit/test_ui_elements.py CHANGED
@@ -24,9 +24,7 @@ def test_orchestrator_mode_info_text_updated():
24
  demo, _ = create_demo()
25
  # Assuming additional_inputs is a list and the Radio is the first element
26
  orchestrator_radio = demo.additional_inputs[0]
27
- expected_info = (
28
- "⚑ Simple: Fast (Free/Any Key) | " "πŸ”¬ Advanced: Deep Multi-Agent " "(OpenAI Key Only)"
29
- )
30
  assert isinstance(
31
  orchestrator_radio, gr.Radio
32
  ), "Expected first additional input to be gr.Radio"
 
24
  demo, _ = create_demo()
25
  # Assuming additional_inputs is a list and the Radio is the first element
26
  orchestrator_radio = demo.additional_inputs[0]
27
+ expected_info = "⚑ Simple: Free/OpenAI/Anthropic | πŸ”¬ Advanced: OpenAI only"
 
 
28
  assert isinstance(
29
  orchestrator_radio, gr.Radio
30
  ), "Expected first additional input to be gr.Radio"