跳转到主要内容
AstrBot manages AI models through Service Providers in its web console. You add Qhaigc as an OpenAI provider, pull the available models, then select a default model for your bot to use across connected platforms such as QQ, WeChat, or Telegram.

Prerequisites

  • AstrBot deployed and its console accessible
  • A Qhaigc API key — get yours from the API Tokens page

Configure AstrBot

1

Open Service Providers

Log in to the AstrBot Console and navigate to Service Providers.
2

Add a new provider

Click Add Provider, then:
  1. Select OpenAI as the provider type.
  2. Enter your Qhaigc API key (starts with sk-) in the API Key field.
  3. Enter https://api.qhaigc.net/v1 in the API Base URL field.
  4. Save the provider.
3

Pull and enable models

  1. Click Get Model List to fetch available models from Qhaigc.
  2. Select the models you want to use.
  3. Enable each selected model.
4

Set the default model

  1. Go to Configuration.
  2. Select the default conversation model from the list of enabled models.
  3. Save the configuration.

Verify the Connection

  • Send a message to your bot through QQ, WeChat, Telegram, or another connected platform.
  • A successful reply confirms that the provider and model are correctly configured.
If the bot does not respond after configuration, first check that a default model is selected in Configuration and that the relevant platform adapter is bound to the bot.

Troubleshooting

Model list cannot be fetched. Verify your API key, API Base URL, and network connectivity. Also confirm the provider was saved successfully before trying to pull models. Bot is running but not replying. Confirm a default model is set in Configuration and that the platform adapter (QQ, WeChat, Telegram, etc.) is active and bound.