pi-gpt-service-tier
v0.1.0
Published
Toggle OpenAI Responses priority service tier per pi session
Maintainers
Readme
pi-gpt-service-tier
Provides the /gpt-fast command for pi, allowing OpenAI Responses API Priority processing to be toggled per session.
Behavior
- Disabled by default for new sessions;
service_tieris omitted from request bodies. - After entering
/gpt-fastfor the first time, requests whoseapiisopenai-responsesincludeservice_tier: "priority". - Entering
/gpt-fastagain removesservice_tierfrom those requests. - Other API types, such as
openai-completions, are not modified. - The setting is stored in the current session and restored when that session is resumed.
- When enabled,
• fastappears after the current model in the pi TUI footer; it is removed when disabled.
Development
Install dependencies and run the full check suite:
npm install
npm run checkLoad the extension directly during development:
pi -e ./extensions/index.tsInstallation
Run this from the repository directory:
pi install .After publishing to npm, install it by package name:
pi install npm:pi-gpt-service-tierStart pi after installation, then enter /gpt-fast to toggle the setting. The command reports whether it is currently enabled or disabled.
Publishing
Inspect the package contents before publishing:
npm pack --dry-run
npm publishLicense
MIT
