Spaces:
Running
Running
SilverElixir commited on
Commit ·
32db59b
1
Parent(s): 2be4f05
Drop unreachable empty-chain guard in ask_gemini
Browse files- lumen_routes.py +0 -2
lumen_routes.py
CHANGED
|
@@ -738,8 +738,6 @@ async def ask_gemini(
|
|
| 738 |
import bot
|
| 739 |
state = bot.get_state(chat_id)
|
| 740 |
chain = list(model_chain) if model_chain else list(GEMINI_DEFAULT_CHAIN)
|
| 741 |
-
if not chain:
|
| 742 |
-
chain = list(GEMINI_DEFAULT_CHAIN)
|
| 743 |
if deadline is None:
|
| 744 |
deadline = time.monotonic() + bot.ROUTE_TOTAL_BUDGET_SEC
|
| 745 |
hist = state.setdefault("history", [])
|
|
|
|
| 738 |
import bot
|
| 739 |
state = bot.get_state(chat_id)
|
| 740 |
chain = list(model_chain) if model_chain else list(GEMINI_DEFAULT_CHAIN)
|
|
|
|
|
|
|
| 741 |
if deadline is None:
|
| 742 |
deadline = time.monotonic() + bot.ROUTE_TOTAL_BUDGET_SEC
|
| 743 |
hist = state.setdefault("history", [])
|