Skip to content

fix(tui): allow custom providers without api key#305

Open
WqyJh wants to merge 1 commit into
mainfrom
mirror/pr-550
Open

fix(tui): allow custom providers without api key#305
WqyJh wants to merge 1 commit into
mainfrom
mirror/pr-550

Conversation

@WqyJh

@WqyJh WqyJh commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • allow the TUI custom provider wizard to continue when the API key step is left blank
  • skip saving auth only when no key is provided, so local OpenAI-compatible providers can be configured without dummy credentials
  • add focused tests for the optional key helper and provider loading without options.apiKey

Fixes XiaomiMiMo#529

Tests

  • npx -y bun@1.3.11 test test/tui/custom-provider.test.ts --timeout 30000
  • npx -y bun@1.3.11 test test/provider/provider.test.ts -t "custom openai-compatible provider can load without an API key" --timeout 30000
  • npx -y bun@1.3.11 typecheck
  • git diff --check

Mirrored from XiaomiMiMo/MiMo-Code#550 — original author @xiaokhkh.

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.

Can't add custom provider

2 participants