respect workflow and block model overrides (#4013)

This commit is contained in:
pedrohsdb
2025-11-17 19:38:27 -08:00
committed by GitHub
parent 1cfa457736
commit 34eb5bb85b
2 changed files with 9 additions and 13 deletions

View File

@@ -257,9 +257,6 @@ class CodeBlockYAML(BlockYAML):
parameter_keys: list[str] | None = None
DEFAULT_TEXT_PROMPT_LLM_KEY = settings.SECONDARY_LLM_KEY or settings.LLM_KEY
class TextPromptBlockYAML(BlockYAML):
# There is a mypy bug with Literal. Without the type: ignore, mypy will raise an error:
# Parameter 1 of Literal[...] cannot be of type "Any"
@@ -267,7 +264,7 @@ class TextPromptBlockYAML(BlockYAML):
# to infer the type of the parameter_type attribute.
block_type: Literal[BlockType.TEXT_PROMPT] = BlockType.TEXT_PROMPT # type: ignore
llm_key: str = DEFAULT_TEXT_PROMPT_LLM_KEY
llm_key: str | None = None
prompt: str
parameter_keys: list[str] | None = None
json_schema: dict[str, Any] | None = None