Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip #927

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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
wip
  • Loading branch information
QuentinBrosse committed Dec 10, 2024
commit 4a6d36cfa2c24bafbfe8d212bcaca677d20068d4
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