Skip to content

feat: choose the model and effort for your own provider keys - #35

Merged
hyochan merged 3 commits into
mainfrom
feat/own-key-model-choice
Nov 18, 2026
Merged

hyochan merged 3 commits into
mainfrom
feat/own-key-model-choice

Conversation

@hyochan

@hyochan hyochan commented Nov 18, 2026

Copy link
Copy Markdown
Member

Summary

Owners who add their own Anthropic or OpenAI key can now choose the model and effort that key runs with, on the web (Profile → Provider keys) and in the CLI.

  • Anthropic: Claude Opus 5.5 (default, medium), Sonnet 5.5 (high) or Haiku 5.5 (medium). OpenAI: GPT-6.1 Sol (high). Efforts are low, medium or high.
  • Requests are not streamed and stop after two minutes, so Fable 5.1 and xhigh/max are left out for now.
  • A model change is checked against the key (GET /v1/models/{id}) before it is saved. An effort-only change needs no check.
  • A new key without access to the previously chosen model is saved with the default model, so replacing a revoked key never needs the key removed first.
  • A stored choice that is no longer offered falls back to the default, so a key never stops working.
  • Own-key usage stays unweighted and never counts against Gitdog tokens. Haiku 5.5 is priced with its 5x rate above 100K input tokens, for recorded cost.
  • CLI: gitdog provider-keys models, gitdog provider-keys model <provider> <model> [--effort], and list shows model and effort.
  • Catch-up: a catch-up that schedules nothing, or cannot list pull requests, now frees its hourly allowance.

Verification

  • bun run lint, bun run typecheck, bun run build
  • bun run test: 2093 passed
  • bun run typecheck:cli && bun run test:cli: 115 passed
  • bun run check:api: catalog matches all 95 exported functions

🤖 Generated with Claude Code

Owners pick Claude Opus 5.5 (default, medium), Sonnet 5.5, Fable 5.1 or
Haiku 5.5, or GPT-6.1 Sol (high), with any effort the model supports, in
the web settings or with gitdog provider-keys model. The choice is
checked against the key when made and when the key is saved again, runs
every request on that key, and is priced at that model; it never touches
Gitdog tokens. A catch-up that schedules nothing now frees its hourly
allowance.
@gitdogai

gitdogai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Review cancelled for a68a8b0

The pull request changed or was closed before the review finished.

@hyochan hyochan left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Review findings from an independent Opus review of this branch.

Comment thread convex/_ai/config.ts Resolved
Comment thread convex/providerApiKeys/action.ts Resolved
Comment thread convex/pullRequests/internalAction.ts Resolved
Comment thread src/i18n/locales/ko.json Resolved
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit a794a56):

https://codeyou-df251--pr35-feat-own-key-model-c-flwhj0x3.web.app

(expires Wed, 25 Nov 2026 08:19:12 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 844dad9c62537d028cabc21008e4e2e4031ce4e5

Comment thread convex/providerApiKeys/action.ts Resolved
@hyochan

hyochan commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

@gitdogai review

@gitdogai

gitdogai Bot commented Nov 18, 2026

Copy link
Copy Markdown

A review is already running. Comment @gitdogai review again once it is posted.

@gitdogai gitdogai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found in a794a56

Approved because no issues were found in fully reviewed changes. Tests were not run. Gitdog

@hyochan
hyochan merged commit be0860b into main Nov 18, 2026
9 checks passed
@hyochan
hyochan deleted the feat/own-key-model-choice branch November 18, 2026 08:22
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