SIGN IN SIGN UP

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

182972 0 0 Python

fix: add bot API key header to ALL bot-facing requests + fix dotenv loading

Two bugs:
1. resolve(), createLinkToken(), and getLinkTokenStatus() were missing
   the X-Bot-API-Key header — only createChatSession and streamChat
   had it. All bot-facing requests now include this.botHeaders().

2. dotenv was imported in config.ts but Chat SDK adapters read env vars
   at import time (before config.ts runs). Moved dotenv.config() to
   the very top of index.ts so .env is loaded before anything else.
B
Bentlybro committed
7cb47c497c6844787abfde9383a18a6d6cf37283
Parent: bb64036