mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-16 18:29:40 +00:00
fix empty llm_key promblem for the TextPromptBlock (#1282)
This commit is contained in:
parent
a8dfc51b5a
commit
f01a7aa357
1 changed files with 2 additions and 1 deletions
|
@ -783,7 +783,8 @@ class TextPromptBlock(Block):
|
|||
return self.parameters
|
||||
|
||||
async def send_prompt(self, prompt: str, parameter_values: dict[str, Any]) -> dict[str, Any]:
|
||||
llm_api_handler = LLMAPIHandlerFactory.get_llm_api_handler(self.llm_key)
|
||||
llm_key = self.llm_key or DEFAULT_TEXT_PROMPT_LLM_KEY
|
||||
llm_api_handler = LLMAPIHandlerFactory.get_llm_api_handler(llm_key)
|
||||
if not self.json_schema:
|
||||
self.json_schema = {
|
||||
"type": "object",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue