README.md
При первом сообщении в чате, плагин автоматически выбирает наиболее подходящий системный промт из списка системных промтов в lm-studio (Model Parameters → Предустановка).
Т.к. SDK напрямую не предоставляет эти настройки, список промтов читается из ~/.lmstudio/config-presets.
Выбор подходящего пресета проводится текущей загруженой в lm-studio моделью.
Доступные пресеты передаются модели через промпт-маршрутизатор (SUB_PROMPT в const.ts). Модель выбирает один наиболее подходящий пресет и возвращает его имя. Если подходящего нет — подмена не происходит.
On the first user message in a chat, the plugin automatically selects the most suitable system prompt from the list of system prompts in LM Studio (Model Parameters → Preset).
Since the SDK does not expose these settings directly, the list of prompts is read from ~/.lmstudio/config-presets.
The best preset is chosen by the currently loaded LM Studio model.
Available presets are passed to the model via a routing prompt (SUB_PROMPT in const.ts). The model picks the single most suitable preset and returns its name. If none fit, no substitution occurs.
npm i
lms dev