Skip to content

feat(providers): add SenseNova (商汤日日新) provider - #5453

Open
morandot wants to merge 1 commit into
HKUDS:mainfrom
morandot:feat/add-sensenova-provider
Open

feat(providers): add SenseNova (商汤日日新) provider#5453
morandot wants to merge 1 commit into
HKUDS:mainfrom
morandot:feat/add-sensenova-provider

Conversation

@morandot

Copy link
Copy Markdown
Contributor

Summary

Adds SenseNova (商汤日日新) as a native LLM provider using the standard OpenAI-compatible endpoint at https://token.sensenova.cn/v1.

Supported Models

  • sensenova-6.8-flash-lite (multimodal)
  • deepseek-v4-flash
  • glm-5.2

Configuration

{
  "providers": {
    "sensenova": {
      "apiKey": "${SENSENOVA_API_KEY}"
    }
  },
  "agents": {
    "defaults": {
      "model": "sensenova-6.8-flash-lite",
      "provider": "sensenova"
    }
  }
}

Routing Note

sensenova-6.8-flash-lite auto-routes via the "sensenova" keyword — no prefix or explicit provider needed. Only deepseek-v4-flash and glm-5.2 bare model names first match the built-in deepseek/zhipu providers; to route those through SenseNova, use the sensenova/ prefix (e.g. sensenova/glm-5.2) or set provider: "sensenova".

Files Changed

  • nanobot/providers/registry.py — new ProviderSpec entry
  • nanobot/config/schema.py — new provider config field
  • nanobot/cli/onboard.py — Quick Start endpoint choice
  • webui/src/lib/provider-brand.ts — brand color + initials
  • tests/cli/test_commands.py — 3 tests (explicit provider, keyword routing, custom apiBase override)
  • webui/src/tests/provider-brand.test.ts — brand assertion
  • docs/configuration.md — provider table entry + setup example

Testing

  • pytest -k sensenova — 3 passed
  • BasedPyright (changed files) — 0 errors / 0 warnings

@chengyongru chengyongru added documentation Improvements or additions to documentation feature new-provider priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal. provider test webui labels Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feature new-provider priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal. provider test webui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants