omp packages

pi-openai-web-search0.0.2

OpenAI Responses native web_search tool for the pi coding agent

GitHub Actions Published 7 days ago MIT ~507 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-openai-web-search

A pi extension that adds a web_search tool backed by OpenAI's native Responses API web_search tool.

When the model calls web_search, the extension sends a separate Responses request that forces OpenAI's hosted web_search tool. It uses the credentials pi already holds for the openai provider (API key or Sign in with ChatGPT), so no extra API key is needed.

Install

pi install npm:pi-openai-web-search

Use

Log in to the openai provider. The model can then call web_search with a query. The result is the answer text followed by its source URLs.

Searches run on openai/gpt-6-luna regardless of the conversation model. Set PI_OPENAI_WEB_SEARCH_MODEL to use another openai model.

See docs/design.md for why search runs as a separate request and how the model was chosen.

Development

bun install
bun fmt --check
bun run lint
bun run typecheck
bun test

License

MIT