-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from khoj-ai/features/hook-up-khoj-and-whatsapp
Have Flint talk to the Khoj backend
- Loading branch information
Showing
9 changed files
with
149 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
import os | ||
|
||
telemetry_server = "https://khoj.beta.haletic.com/v1/telemetry" | ||
KHOJ_WHATSAPP_PROD = "whatsapp:+18488004242" | ||
KHOJ_WHATSAPP_DEBUG = "whatsapp:+14155238886" | ||
KHOJ_INTRO_MESSAGE = f""" | ||
Nice to meet you! I am Khoj, your dedicated personal AI 👋🏽. I can help you with: | ||
- 📜 Free-form journaling and note-taking | ||
- 🧠 Answering general knowledge questions | ||
- 💡 Ideating over new ideas | ||
- 🖊️ Being a scratchpad for your thoughts, links, concepts that you want to remember | ||
- 🌄 Making images from your own words (try typing `/dream`) | ||
- 📝 Retrieving information from your own knowledge base shared with Khoj on the cloud. See https://khoj.dev for more info | ||
You can also send me voice messages in your native language 🎙️. | ||
I'm constantly learning and improving. I'm still in beta, so please report any bugs or issues to my creators on GitHub: https://github.com/khoj-ai/flint/issues | ||
I'm constantly learning and improving, so please report any issues to my creators on GitHub: https://github.com/khoj-ai/flint/issues | ||
""".strip() | ||
KHOJ_PROMPT_EXCEEDED_MESSAGE = f""" | ||
I'm sorry, I can't read messages that are so long. Could you please shorten your message and try again? I'm constantly learning and improving, so I'll be able to read longer messages soon. | ||
""" | ||
MAX_TOKEN_LIMIT_PROMPT = 12000 | ||
|
||
KHOJ_FAILED_AUDIO_TRANSCRIPTION_MESSAGE = f""" | ||
Sorry, I wasn't able to understand your voice message this time. Could you please try typing out your message or send a shorter audio file? If you'd like to help me improve, email my creators at [email protected]. | ||
""".strip() | ||
KHOJ_UNSUPPORTED_MEDIA_TYPE_MESSAGE = f""" | ||
Sorry, I'm still learning and can only understand text or voice message right now. Maybe share the content as a text message with me? Or if you really need this feature, email my creators at [email protected]. | ||
Sorry, I wasn't able to understand your voice message this time. Could you please try typing out your message or send a shorter message? If you'd like to help me improve, email my creators at [email protected]. | ||
""".strip() | ||
|
||
KHOJ_API_URL = os.getenv("KHOJ_API_URL", "https://khoj.dev") | ||
KHOJ_API_CLIENT_ID = os.getenv("KHOJ_API_CLIENT_ID") | ||
KHOJ_API_CLIENT_SECRET = os.getenv("KHOJ_API_CLIENT_SECRET") |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.