make text promtp llm pickable in settings (#1894)

This commit is contained in:
Shuchang Zheng
2025-03-05 22:12:23 -08:00
committed by GitHub
parent ab02998d19
commit 7b9fab05b8
2 changed files with 2 additions and 1 deletions

View File

@@ -98,6 +98,7 @@ class Settings(BaseSettings):
SECONDARY_LLM_KEY: str | None = None
SELECT_AGENT_LLM_KEY: str | None = None
SINGLE_CLICK_AGENT_LLM_KEY: str | None = None
TEXT_ONLY_AGENT_LLM_KEY: str | None = None
# COMMON
LLM_CONFIG_TIMEOUT: int = 300
LLM_CONFIG_MAX_TOKENS: int = 4096

View File

@@ -1186,7 +1186,7 @@ async def user_code():
)
DEFAULT_TEXT_PROMPT_LLM_KEY = settings.SECONDARY_LLM_KEY or settings.LLM_KEY
DEFAULT_TEXT_PROMPT_LLM_KEY = settings.TEXT_ONLY_AGENT_LLM_KEY or settings.LLM_KEY
class TextPromptBlock(Block):