Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-extension-tinker

Tinker (Thinking Machines) provider for pi-coding-agent.

Uses Tinker's OpenAI-compatible chat-completions endpoint, so the plugin is a thin provider registration: catalog + base URL + a slash command for tinker://... training checkpoints.

Install

cd your-pi-workspace
pnpm add /absolute/path/to/pi-extension-tinker

Use

export TINKER_API_KEY=...
pi -e ./node_modules/pi-extension-tinker

Then in pi:

/model                                                  # pick a tinker/* model
/model tinker:0034d8c9-...:train:0/sampler_weights/000100   # training checkpoint

/model accepts arbitrary tinker:<rest> ids because the stream wrapper translates them to tinker://<rest> before sending.

Why this exists

Tinker's /services/tinker-prod/oai/api/v1/chat/completions is OpenAI-compatible. Rather than vendor a parallel OpenAI client or duplicate pi-ai's OpenAI-Completions stream, this extension registers a provider that points pi-ai's existing implementation at the Tinker base URL. Catalog, command, and a one-line toWireModelId translation are the only custom code.

What it does NOT do

Files

  • index.ts — provider registration. toWireModelId handles both catalog ids (tinker/<path>) and checkpoint ids (tinker:<rest>tinker://<rest>). Delegates to openAICompletionsApi() from @earendil-works/pi-ai/compat.
  • models.ts — flat catalog derived from https://tinker-docs.thinkingmachines.ai/tinker/models/
  • test.ts — smoke test (catalog shape + id translation). npx tsx test.ts.

Tinker docs we're implementing against

About

Tinker (Thinking Machines) provider extension for pi-coding-agent. OpenAI-Compatible chat-completions over the Tinker /oai endpoint.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages