mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-17 02:39:40 +00:00
set a DEFAULT_TEXT_PROMPT_LLM_KEY if TextPromptBlock.llm_key is not passed to backend (#1280)
This commit is contained in:
parent
eec7e7c40c
commit
a8dfc51b5a
2 changed files with 9 additions and 2 deletions
|
@ -765,10 +765,13 @@ async def user_code():
|
|||
return self.build_block_result(success=True, output_parameter_value=result, status=BlockStatus.completed)
|
||||
|
||||
|
||||
DEFAULT_TEXT_PROMPT_LLM_KEY = settings.SECONDARY_LLM_KEY or settings.LLM_KEY
|
||||
|
||||
|
||||
class TextPromptBlock(Block):
|
||||
block_type: Literal[BlockType.TEXT_PROMPT] = BlockType.TEXT_PROMPT
|
||||
|
||||
llm_key: str
|
||||
llm_key: str = DEFAULT_TEXT_PROMPT_LLM_KEY
|
||||
prompt: str
|
||||
parameters: list[PARAMETER_TYPE] = []
|
||||
json_schema: dict[str, Any] | None = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue