Skip to content

feat(console): expose AI SDK package in Zen models API - #41313

Closed
Cretezy wants to merge 1 commit into
anomalyco:devfrom
Cretezy:zen-model-npm
Closed

feat(console): expose AI SDK package in Zen models API#41313
Cretezy wants to merge 1 commit into
anomalyco:devfrom
Cretezy:zen-model-npm

Conversation

@Cretezy

@Cretezy Cretezy commented Aug 8, 2026

Copy link
Copy Markdown

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The Zen GET /v1/models response now includes an npm field for each model. The value is derived from the model's configured API format, matching the AI SDK packages documented for each Zen endpoint: Anthropic, Google, OpenAI, or OpenAI-compatible.

This is to match models.dev's API.

The shared response builder is used by both the full Zen model list and the Go model list, so both endpoints expose the same metadata shape.

How did you verify your code works?

  • Ran bun typecheck from packages/console/app.
  • Ran bun typecheck from packages/console/core.

Screenshots / recordings

Not applicable; this is an API response change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Aug 8, 2026
@Cretezy
Cretezy marked this pull request as ready for review August 8, 2026 18:31
@Cretezy
Cretezy marked this pull request as draft August 8, 2026 18:32
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 8, 2026
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@Cretezy
Cretezy marked this pull request as ready for review August 8, 2026 18:48
@Cretezy
Cretezy marked this pull request as draft August 8, 2026 18:56
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Aug 8, 2026
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 8, 2026
@github-actions github-actions Bot closed this Aug 8, 2026
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