pi-gpt-service-tier

Toggle OpenAI Responses priority service tier per pi session

Packages

Package details

extension

Install pi-gpt-service-tier from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-gpt-service-tier
Package
pi-gpt-service-tier
Version
0.1.0
Published
Aug 13, 2026
Downloads
163/mo · 13/wk
Author
tbanowl
License
MIT
Types
extension
Size
7.5 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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_tier is omitted from request bodies.
  • After entering /gpt-fast for the first time, requests whose api is openai-responses include service_tier: "priority".
  • Entering /gpt-fast again removes service_tier from 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, • fast appears 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 check

Load the extension directly during development:

pi -e ./extensions/index.ts

Installation

Run this from the repository directory:

pi install .

After publishing to npm, install it by package name:

pi install npm:pi-gpt-service-tier

Start 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 publish

License

MIT