The current version is compatible with three main types of large language models:
- Aliyun system: Thousand Questions Series (qwen-plus/qwen-max)
- Tencent system: Hybrid Megamodel (requires enterprise API application)
- byte system: Doubao model (ark/doubao-pro)
Complete process for switching models:
- exist
.env
file to update the API Key and BaseURL of the target model. - Modify the character's
model
The field value is the corresponding identifier - Redeploy to Cloudflare Pages (triggers environment variable update)
Caveats:
- Billing methods and QPS limits vary widely across models
- Some models require additional parameters such as temperature
- It is recommended to adopt
npm run dev
Test locally before deploying
This answer comes from the articleBotgroup.chat: a group chat app with multiple AI characters interacting in real timeThe