Skip to content

Commit

Permalink
fix: Possible to disable searchApi (#278)
Browse files Browse the repository at this point in the history
* Add Google Calendar integration

* Update langchain and whatsapp

* Update googleapis version to 126.0.1

* Add Google Calendar integration

* fix: searchTool can now be disabled

* Update version to 2.2.2

* Remove unused Google Calendar environment variables
  • Loading branch information
Luisotee authored Mar 4, 2024
1 parent de54ba4 commit d21d73c
Show file tree
Hide file tree
Showing 7 changed files with 306 additions and 60 deletions.
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ TRANSCRIPTION_LANGUAGE="auto" # Example: "pt" (portuguese), "en" (english), "es
# OpenRouter Features:
# ------------------------------

# This is the API that OpenRouter will use to search for information.
# This is the API that OpenRouter will use to search in the web for information.
# You can get one at https://www.searchapi.io/
SEARCH_API="Your API key here" # Do not leave this empty
# Leave this empty if you're not going to use it
SEARCH_API=""

# This is the memory that OpenRouter will use, options are "buffer" or "summary"
# Buffer saves OPENROUTER_MSG_MEMORY_LIMIT ammount of messages in memory to use for context, anything past that is ignored
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whatsapp-ai-assistant",
"version": "2.2.1",
"version": "2.2.2",
"description": "WhatsApp chatbot",
"module": "src/index.ts",
"type": "module",
Expand Down Expand Up @@ -30,6 +30,8 @@
},
"dependencies": {
"@keyv/sqlite": "^3.6.6",
"@langchain/community": "^0.0.21",
"@langchain/openai": "^0.0.13",
"@prisma/client": "5.3.1",
"@types/common-tags": "^1.8.2",
"@types/node-schedule": "^2.1.1",
Expand All @@ -39,14 +41,15 @@
"dotenv": "^16.3.1",
"dotenv-expand": "^10.0.0",
"fluent-ffmpeg": "^2.1.2",
"googleapis": "^126.0.1",
"keyv": "^4.5.3",
"langchain": "^0.0.208",
"langchain": "^0.1.8",
"node-fetch": "^3.3.2",
"node-schedule": "^2.1.1",
"openai": "^4.11.1",
"qrcode": "^1.5.3",
"rrule": "^2.7.2",
"whatsapp-web.js": "1.23.1-alpha.0",
"whatsapp-web.js": "1.23.1-alpha.4",
"zod": "^3.22.2"
}
}
Loading

0 comments on commit d21d73c

Please sign in to comment.