Skip to content

AI features ​

AI features are platform capabilities powered by a language model: post summaries, the comment bot and text moderation.

Overview ​

The platform connects to one language model provider, and all AI features use it. The provider and prompts are configured in the Admin Panel → AI group.

Text and image moderation is described in Moderation.

Provider ​

The provider is connected in Admin Panel → AI → Settings:

  • AI provider: DeepSeek, OpenAI, Google Gemini or YandexGPT
  • API key: required
  • Model: required
  • Base URL: the API address

Default values:

ProviderDefault modelDefault Base URL
DeepSeekdeepseek-chathttps://api.deepseek.com/v1
OpenAIgpt-6-lunahttps://api.openai.com/v1
Google Geminigemini-3.8-flashhttps://generativelanguage.googleapis.com/v1beta/openai
YandexGPTgpt://<folder ID>/yandexgpt-lite/latesthttps://llm.api.cloud.yandex.net/v1

For YandexGPT, the model is set in the gpt://<folder ID>/<model> format, where the folder ID comes from the Yandex Cloud console.

Post summary ​

A summary is available for posts whose paragraphs and lists contain at least 400 characters of text. The model receives the post title, intro and text. The summary is generated on the first request and saved: later readers get the saved one, and it is not updated after the post is edited.

Summaries are available to users with the post_summaries subscription feature.

Prompts are set in Admin Panel → AI → Summary:

  • System prompt: the model's role and general rules
  • User prompt: the task appended after the post text

Comment bot ​

The bot is a platform user on whose behalf the model's replies are posted. It is configured in Admin Panel → AI → Bot:

  • Bot account: the user the bot replies as; until it is selected, the bot does not work
  • Prompt: reply instructions; if empty, the default prompt is used

Seeding the database creates the user ChatGPT Bot with the profile address chatgptbot and assigns it as the bot account.

The bot replies to a comment that mentions its profile address and contains text besides the mention, for example: @chatgptbot explain the difference between REST and GraphQL. The model receives the post title, intro and the first 5000 characters of the post text together with the question, and the reply is posted in the comment thread.

Bot replies are available to users with the chatgpt_comments subscription feature. Everyone else gets a reply comment with a link to purchase the subscription.

Released under the MIT License.