A modern AI chatbot template built on Tencent Cloud EdgeOne, supporting multiple AI models with real-time streaming responses. No traditional backend required.
Click the button above to deploy directly to Tencent Cloud EdgeOne Pages.
https://ai-chatbot-starter.edgeone.app/
Set the following environment variables (API keys) in EdgeOne Pages or your local .env file:
DEEPSEEK_API_KEY=your_deepseek_api_key
OPENAI_API_KEY=your_openai_api_key
GEMINI_API_KEY=your_gemini_api_key
NEBIUS_API_KEY=your_nebius_api_key
CLAUDE_API_KEY=your_claude_api_key
Start the frontend locally:
npm install
npm run devYou need to install EdgeOne CLI globally and follow the official steps to run local edge functions:
-
Install EdgeOne CLI globally:
npm install -g edgeone
For more commands, see the scaffolding document.
-
Function Initialization:
edgeone pages init
This will automatically initialize the functions directory and host the functions code.
-
Associate Project:
edgeone pages link
Enter your current project name to automatically associate project KV configuration, environment variables, etc.
-
Local Development:
edgeone pages dev
This will start the local proxy service and enable function debugging (usually at http://localhost:8088).
-
Function Release: Push code to the remote repository to automatically build and release the function.
Feel free to open an issue or PR if you have questions or suggestions!
This project is licensed under the MIT License.