@benvargas/pi-openai-fast
v1.0.2
Published
OpenAI fast mode toggle for pi - Enables priority service tier on supported GPT-5.4 models
Maintainers
Readme
@benvargas/pi-openai-fast
/fast toggle for pi that enables OpenAI priority service tier on configured models.
This extension does not change the model, thinking level, tools, or prompts. It only adds service_tier=priority to provider requests when fast mode is active and the current model matches the configured supported-model list.
Requires pi 0.57.0 or newer.
Install
pi install npm:@benvargas/pi-openai-fastOr try without installing:
pi -e npm:@benvargas/pi-openai-fastUsage
/fasttoggles fast mode on or off./fast onexplicitly enables fast mode./fast offexplicitly disables fast mode./fast statusreports the current fast-mode state.--faststarts the session with fast mode enabled.- By default, fast mode persists across new pi sessions via a JSON config file.
- Startup state comes from the selected config file, not from resumed session/thread history.
Example:
pi -e npm:@benvargas/pi-openai-fast --fastConfig
Config files follow the same project-over-global pattern as the other packages:
- Project:
<repo>/.pi/extensions/pi-openai-fast.json - Global:
~/.pi/agent/extensions/pi-openai-fast.json
If neither exists, the extension writes a default global config on first run.
Default config:
{
"persistState": true,
"active": false,
"supportedModels": [
"openai/gpt-5.4",
"openai-codex/gpt-5.4"
]
}Settings:
persistState: whentrue,/fastwrites the current on/off state to config so it resumes in new pi sessions. Default:true.active: persisted fast-mode state used on startup whenpersistStateis enabled.supportedModels: list ofprovider/model-idstrings that should receiveservice_tier=priority.
Project config overrides global config. /fast on and /fast off write to the selected config file, so if a project config exists the remembered state is project-specific. If fast mode is enabled on a model that is not in supportedModels, the setting stays on but requests are left unchanged until you switch back to a configured model.
Notes
- When
persistStateis enabled, the last/fastsetting also carries across brand-new pi sessions. - Resumed sessions do not override the config-backed startup state.
- On configured models, fast mode maps to OpenAI
service_tier=priority.
Uninstall
pi remove npm:@benvargas/pi-openai-fastLicense
MIT
