mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-28 03:30:10 +00:00
fix: default AI fallback to true on the run page (#5017)
This commit is contained in:
parent
c30e43bc84
commit
644051d13c
5 changed files with 5 additions and 5 deletions
|
|
@ -1807,7 +1807,7 @@ class AgentDB(BaseAlchemyDB):
|
|||
is_saved_task: bool = False,
|
||||
status: WorkflowStatus = WorkflowStatus.published,
|
||||
run_with: str | None = None,
|
||||
ai_fallback: bool = False,
|
||||
ai_fallback: bool = True,
|
||||
cache_key: str | None = None,
|
||||
adaptive_caching: bool = False,
|
||||
generate_script_on_terminal: bool = False,
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ class WorkflowModel(Base):
|
|||
status = Column(String, nullable=False, default="published")
|
||||
generate_script = Column(Boolean, default=False, nullable=False)
|
||||
run_with = Column(String, nullable=True) # 'agent' or 'code'
|
||||
ai_fallback = Column(Boolean, default=False, nullable=False)
|
||||
ai_fallback = Column(Boolean, default=True, nullable=False, server_default=sqlalchemy.true())
|
||||
cache_key = Column(String, nullable=True)
|
||||
adaptive_caching = Column(Boolean, default=False, nullable=False, server_default=sqlalchemy.false())
|
||||
generate_script_on_terminal = Column(Boolean, default=False, nullable=False, server_default=sqlalchemy.false())
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class Workflow(BaseModel):
|
|||
max_screenshot_scrolls: int | None = None
|
||||
extra_http_headers: dict[str, str] | None = None
|
||||
run_with: str | None = None
|
||||
ai_fallback: bool = False
|
||||
ai_fallback: bool = True
|
||||
cache_key: str | None = None
|
||||
adaptive_caching: bool = False
|
||||
generate_script_on_terminal: bool = False
|
||||
|
|
|
|||
|
|
@ -2543,7 +2543,7 @@ class WorkflowService:
|
|||
extra_http_headers=extra_http_headers,
|
||||
run_with=run_with,
|
||||
cache_key=cache_key,
|
||||
ai_fallback=False if ai_fallback is None else ai_fallback,
|
||||
ai_fallback=True if ai_fallback is None else ai_fallback,
|
||||
run_sequentially=run_sequentially,
|
||||
sequential_key=sequential_key,
|
||||
folder_id=folder_id,
|
||||
|
|
|
|||
|
|
@ -1015,7 +1015,7 @@ class WorkflowCreateYAMLRequest(BaseModel):
|
|||
extra_http_headers: dict[str, str] | None = None
|
||||
status: WorkflowStatus = WorkflowStatus.published
|
||||
run_with: str | None = None
|
||||
ai_fallback: bool = False
|
||||
ai_fallback: bool = True
|
||||
cache_key: str | None = "default"
|
||||
adaptive_caching: bool = False
|
||||
generate_script_on_terminal: bool = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue