Skip to content

feat: export Pi model catalog - #54

Open
jaivial wants to merge 1 commit into
sybil-solutions:mainfrom
jaivial:pi-model-catalog
Open

jaivial wants to merge 1 commit into
sybil-solutions:mainfrom
jaivial:pi-model-catalog

Conversation

@jaivial

@jaivial jaivial commented Aug 26, 2026

Copy link
Copy Markdown

Summary

  • add a read-only codex-shim export-pi command for Pi-native model discovery
  • preserve ChatGPT and Cursor passthrough models plus BYOK API routing metadata
  • document a non-destructive merge into ~/.pi/agent/models.json

Verification

  • python3 -m compileall -q codex_shim
  • exported IDs diff-clean against live GET /v1/models (43/43)
  • installed locally into Pi with existing providers preserved; pi --list-models resolves the new provider

@jaivial jaivial left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: #54 — feat: export Pi model catalog

Author: @jaivial · Base: mainjaivial:pi-model-catalog
Files: 3 changed · +168 / −3 · 1 commit(s)


Short Summary

Adds a read-only exporter that turns the shim's live model catalog into Pi's native models.json provider shape. It preserves per-model transport differences and documents a non-destructive merge into an existing Pi configuration.


Critical Issues

None.


Important Blockers

None.


Medium Blockers

None.


Non-Blocker Nits

None.


Verdict

Approve

Compilation is clean, exported IDs match the shim's advertised /v1/models set, active passthroughs/router handling are included, and duplicate model IDs are suppressed.

@jaivial jaivial left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: #54 — feat: export Pi model catalog

Author: @jaivial · Base: mainjaivial:pi-model-catalog
Files: 3 changed · +143 / −3 · 1 commit(s)


Short Summary

Adds a read-only exporter for Pi's native model-provider catalog while preserving OpenAI Chat, OpenAI Responses, and Anthropic Messages routing. It documents a merge that leaves unrelated Pi providers untouched.


Critical Issues

None.


Important Blockers

None.


Medium Blockers

None.


Non-Blocker Nits

None.


Verdict

Approve

Compilation is clean and the exported unique-ID set matches the running shim's /v1/models catalog; duplicate handling, per-model API routing, token limits, input modality metadata, and documentation are all covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant