Commit
Β·
87feaa7
1
Parent(s):
73d9747
fix(ui): clarify mode compatibility in radio button info
Browse filesOld: "β‘ 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.
- src/app.py +1 -4
- 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"
|