Skip to content
Closed

wip #927

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions openadapt/drivers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def get_response(
"https://api.openai.com/v1/chat/completions",
headers=headers,
json=payload,
verify=False,
)
result = response.json()
if "error" in result:
Expand Down
3 changes: 3 additions & 0 deletions openadapt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ class ActionEvent(db.Base):
scrubbed_text = sa.Column(sa.String)
scrubbed_canonical_text = sa.Column(sa.String)

active_browser_element = None
available_browser_elements = None

def __new__(cls, *args: tuple, **kwargs: dict) -> "ActionEvent":
"""Create a new instance; also called when loading from db."""
instance = super(ActionEvent, cls).__new__(cls)
Expand Down