Skip to content

Sdk migration and quality updates#6

Open
mattapperson wants to merge 11 commits intomainfrom
sdk-migration-and-quality
Open

Sdk migration and quality updates#6
mattapperson wants to merge 11 commits intomainfrom
sdk-migration-and-quality

Conversation

@mattapperson
Copy link
Contributor

No description provided.

Add biome.json (adapted from openrouter-web, stripped of monorepo/React
specifics), root package.json with lint/typecheck scripts, and GitHub
Actions CI for lint + typecheck on PR and push to main.
Expand description with many more trigger phrases so Claude activates
the skill even when users don't mention OpenRouter explicitly. Add "why"
explanations to Presenting Results guidelines. Add Common Workflows table
showing how to chain scripts for typical user intents.
…idance

Expand description to cover more trigger phrases (logo, sketch, mockup, etc.)
so the skill activates in more relevant contexts. Add prompt tips section for
better image results. Add "why" explanations to presenting results section.
Cross-reference openrouter-models skill for model discovery.
Replace generic "Using a Different Model" section with a Model Selection
table showing when to pick different models. Add "why" explanations to
Presenting Results and suggest iterative refinement workflow.
…ive disclosure

Reduce SKILL.md from 1316 to 401 lines by extracting detailed content
into reference files:
- references/authentication.md: OAuth PKCE flow, API key management
- references/event-shapes.md: full stream event types and interfaces
- references/message-shapes.md: request/response type interfaces
- references/advanced-patterns.md: format conversion, dynamic params, generator/manual tools

Updated description to be more discoverable with trigger phrases.
Added clear pointers in SKILL.md to each reference file.
…ions

Position callModel as a high-level framework comparable to Vercel AI SDK,
explaining why it should be the default choice and when to use lower-level
methods like client.chat.send() as escape hatches.
Switch image generation and editing scripts from client.chat.send()
(Chat Completions API) to client.callModel() (Responses API), as
recommended in the Slack review. callModel provides automatic tool
execution, type safety, and is the SDK's primary high-level interface.

Also fixes biome formatting in biome.json.
… API

Align SKILL.md and reference files with @openrouter/sdk v0.9.11:
- Fix multimodal input to Responses API format (input_text/input_image)
- Add getItemsStream, getToolCalls, getFullResponsesStream, cancel methods
- Add Model Fallback, Image Generation, Structured Output, Reasoning sections
- Remove invalid stop parameter from Generation Parameters
- Fix context object properties in advanced-patterns.md
- Add requireApproval, type inference utilities, additional stop conditions
- Add deprecation note for getNewMessagesStream in event-shapes.md
- Add reasoning/image_generation/web_search/file_search output types
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