Skip to content

feat: add per-model and default request params - #1

Open
ivanpashenko wants to merge 2 commits into
iovdin:masterfrom
ivanpashenko:feat/per-model-request-params
Open

feat: add per-model and default request params#1
ivanpashenko wants to merge 2 commits into
iovdin:masterfrom
ivanpashenko:feat/per-model-request-params

Conversation

@ivanpashenko

@ivanpashenko ivanpashenko commented Aug 10, 2026

Copy link
Copy Markdown

Summary

  • add params to models() for provider request defaults per real model ID
  • support default as either a model string or { model, ...requestDefaults }
  • deep-merge configured defaults into outgoing LLM payloads
  • let aliases and @default inherit their resolved model configuration
  • preserve per-chat overrides

Example

models({
  default: {
    model: "openai/gpt-5.6-terra",
    reasoning: { max_tokens: 8000 }
  }
})

Validation

  • npm test -- params_merge
  • linked the local package in ~/.tune
  • verified the object-form default sends reasoning.max_tokens: 8000 and completes a real Tune request

@ivanpashenko ivanpashenko changed the title feat: add per-model request params feat: add per-model and default request params Aug 10, 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