Skip to content

Complete OpenRouter provider support#176

Open
kenrogers wants to merge 1 commit intoshareAI-lab:mainfrom
kenrogers:openrouter-provider-completion
Open

Complete OpenRouter provider support#176
kenrogers wants to merge 1 commit intoshareAI-lab:mainfrom
kenrogers:openrouter-provider-completion

Conversation

@kenrogers
Copy link
Copy Markdown

Summary

  • Treat openrouter as an OpenAI-compatible provider in completion and connection-test paths
  • Export OpenRouter model profiles with OPENROUTER_API_KEY
  • Repair missing GPT-5 OpenRouter profile base URLs to https://openrouter.ai/api/v1
  • Document OpenRouter setup in the README, developer configuration docs, and .env.example

Tests

  • bun test tests/unit/model-config-yaml.test.ts tests/unit/config-validator-openrouter.test.ts tests/unit/model-selector.test.tsx
  • KODE_CONFIG_DIR=/tmp/kode-agent-test-config bun test tests/unit

The full unit suite passed with 424 passing, 4 skipped, and 0 failed tests.

Note: bun run typecheck and the default commit hook still fail on existing repo-wide issues unrelated to this patch, including terminalSetup.ts missing aliases and existing dontAsk permission-mode type errors.

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