Skip to content

docs: add npm usage with a type-safe OpenAI example#69

Merged
brunobuddy merged 1 commit into
mainfrom
docs/readme-npm-openai-example
Jun 15, 2026
Merged

docs: add npm usage with a type-safe OpenAI example#69
brunobuddy merged 1 commit into
mainfrom
docs/readme-npm-openai-example

Conversation

@brunobuddy

Copy link
Copy Markdown
Member

💭 Why

The README never mentioned the modelparams npm package or showed how the types stop you from passing a parameter a model doesn't accept.

✨ What changed

  • New TypeScript section: npm install plus an OpenAI SDK snippet built on ParamsOf<Id>.
  • The snippet flags top_k on gpt-4.1 as a compile error, verified against the generated types.
  • Trimmed the intro, API, and contributing sections; deeper docs link to the package README instead of repeating it.

👤 For users

A reader landing on the repo sees the type-safe path first, with a copy-pasteable OpenAI example.

Lead the README with `npm install modelparams` and a short OpenAI SDK
snippet showing `ParamsOf<Id>` catch an unsupported param at compile
time. Trim the intro, API, and contributing sections so the page stays
short and points to the package README for the rest.
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modelparams.dev Ready Ready Preview Jun 15, 2026 1:10pm

Request Review

@github-actions github-actions Bot added the meta Repo docs, CI, and config label Jun 15, 2026
@brunobuddy brunobuddy merged commit afdb13f into main Jun 15, 2026
5 checks passed
@brunobuddy brunobuddy deleted the docs/readme-npm-openai-example branch June 15, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Repo docs, CI, and config

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant