khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
13.02k stars 664 forks source link

[FIX] cannot set RESEND_API_KEY on the docker version #905

Closed lethanhviet closed 1 month ago

lethanhviet commented 1 month ago

Describe the bug

Setting the RESEND_API_KEY on the docker environment return an error.

Traceback (most recent call last): File "/app/src/khoj/main.py", line 93, in from khoj.configure import configure_routes, initialize_server, configure_middleware File "/app/src/khoj/configure.py", line 44, in from khoj.routers.api_content import configure_content, configure_search File "/app/src/khoj/routers/api_content.py", line 37, in from khoj.routers.helpers import ( File "/app/src/khoj/routers/helpers.py", line 90, in from khoj.routers.email import is_resend_enabled, send_task_email File "/app/src/khoj/routers/email.py", line 28, in resend.api_key = RESEND_API_KEY NameError: name 'resend' is not defined

To Reproduce

Steps to reproduce the behavior:

Screenshots

If applicable, add screenshots to help explain your problem.

Platform

If self-hosted

Additional context

Add any other context about the problem here.

sabaimran commented 1 month ago

hi @lethanhviet , sorry about this. this is because our prod docker image for khoj-cloud isn't made public. we'll go ahead and make that public, and then you'll have to use that.

debanjum commented 1 month ago

Hey @lethanhviet, the Khoj cloud docker image has been made public. That has Resend and other production package installed. So you should be able to start that with your RESEND API KEY set as an environment variable.

Feel free to reopen this issue if you're still unable to use Resend with the Khoj cloud docker image