henyo-pi-qwen3
v1.0.0
Published
Prepend Qwen system identity to the system prompt when using Qwen3 models in pi.
Readme
henyo-pi-qwen3
A pi extension that prepends the Qwen system identity (You are Qwen, created by Alibaba Cloud. You are a helpful assistant.) to the system prompt whenever a Qwen3 model is selected.
Installation
pi install npm:henyo-pi-qwen3How it works
session_start— Notifies if the current model is Qwen3.model_select— Notifies when switching to a Qwen3 model.before_agent_start— If the active model ID matches/^qwen3/i, prepends the Qwen identity text to the system prompt before the agent loop begins.
Customization
To change the model regex or prepend text, fork this repo and edit the constants in index.ts:
| Constant | Default | Description |
|---|---|---|
| MODEL_PREFIX_REGEX | /^qwen3/i | Regex to match model IDs that trigger the prompt prepend |
| PREPEND_TEXT | You are Qwen... | Text prepended to the system prompt |
License
MIT
