Заметки к выпуску
Added
- Optional secret setting
creditsAiKey: an AI key generated in the AI service. When it is set, the chat and the reads of its conversations go to the AI service key routes (POST /v1/key/sites/chatandGET /v1/key/sites/conversations/{id}) with the key in theX-AI-Keyheader instead of the service key, so the credits of the key's organization pay for what the AI does. Every other call keeps the service key, and the site service never receives the AI key. When the setting is empty nothing changes. A key that cannot travel in a header (a space, a non-ASCII character, more than 512 characters) makes the setting invalid, reported by its name only; the key is never logged, echoed or stored. - Clear sentences, in English, Russian and Armenian, for an AI key that is missing, invalid, revoked or expired (the error codes
AI_KEY_MISSING,AI_KEY_INVALID,AI_KEY_REVOKEDandAI_KEY_EXPIRED), shown in the chat where the administrator must add or replace the key in the plugin settings. A key whose organization is out of credits shows the existing "not enough AI credits" sentence.
Fixed
- The state of a site no longer fails with a gateway error. The plugin asked the site service for the latest deployment of the preview environment by the name
Preview, and the service only knowsstageandprod, so it answered 400. The plugin now sends the same environment names it uses in every other call. Hostpanel.Sdk stays at 3.10.0.
Upgrading
- Nothing to do: every stored setting keeps working, and without an AI key the plugin behaves as in 2.2.1.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «innovayse-sites» и выберите версию 2.3.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.