Skip to content

Commit

Permalink
fix: add requirements.txt and update readme (#109)
Browse files Browse the repository at this point in the history
As an alternative to uncommenting this line in`pyproject.toml`:
```
...
#"google-generativeai == 0.7.2",
...
```
  • Loading branch information
pashafateev authored Oct 30, 2024
1 parent dea9f76 commit 615ffd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions slack_support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ You are ready to roll. Deploy your project:
```
$ ak deploy --project slack_support --dir .
```

> [!NOTE]
> This project includes a `requirements.txt` file for installing dependencies. This is relevant when using the [cloud offering](https://app.autokitteh.cloud/) or when running in [Docker mode](https://docs.autokitteh.com/get_started/start_server/#docker). If you're not using Google Gemini and want to customize this project, you can remove or modify the file as needed. Otherwise, leave it as is.
2 changes: 1 addition & 1 deletion slack_support/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def send(text):
msg = autokitteh.next_event(s, timeout=60)

if not msg: # timeout
dt = datetime.now().total_seconds() - start_time.total_seconds()
dt = (datetime.now() - start_time).total_seconds()
print(f"timeout, dt={dt}")

if not taken_by and dt >= HELP_REQUEST_TIMEOUT_MINUTES * 60:
Expand Down
1 change: 1 addition & 0 deletions slack_support/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-generativeai==0.8.3

0 comments on commit 615ffd4

Please sign in to comment.