Skip to content

feat(providers): add DaoXE#3793

Open
seven7763 wants to merge 1 commit into
chatboxai:mainfrom
seven7763:codex/add-daoxe-provider
Open

feat(providers): add DaoXE#3793
seven7763 wants to merge 1 commit into
chatboxai:mainfrom
seven7763:codex/add-daoxe-provider

Conversation

@seven7763

@seven7763 seven7763 commented Jul 11, 2026

Copy link
Copy Markdown

Summary

  • add DaoXE as a built-in OpenAI-compatible provider
  • use https://daoxe.com/v1 as the default API base URL
  • expose the provider website, public integration docs, model catalog, and a small provider icon
  • discover model IDs from the authenticated /models endpoint instead of shipping a static list that may become stale

DaoXE uses the existing OpenAICompatible abstraction, so this change adds no dependency and does not alter any existing provider.

Validation

  • electron-vite build
  • tsc --noEmit after the normal route generation step
  • full Vitest suite: 1,090 passed, 54 skipped
  • Biome format and lint checks on the changed files (no new errors)
  • live unauthenticated check of https://daoxe.com/v1/models: structured JSON 401, as expected without credentials

No API key was used and no billable generation request was made.

Contributor Agreement

By submitting this Pull Request, I confirm that I have read and agree to the following terms:

  • I agree to contribute all code submitted in this PR to the open-source community edition licensed under GPLv3 and the proprietary official edition without compensation.

  • I grant the official edition development team the rights to freely use, modify, and distribute this code, including for commercial purposes.

  • I confirm that this code is my original work, or I have obtained the appropriate authorization from the copyright holder to submit this code under these terms.

  • I understand that the submitted code will be publicly released under the GPLv3 license, and may also be used in the proprietary official edition.

  • I have read and agree with the above statement.

@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

DaoXE is added as an OpenAI-compatible provider, including its model class, provider registration, configuration, menu entry, display name, compatibility handling, and SVG icon.

Changes

DaoXE provider integration

Layer / File(s) Summary
Provider contract and compatibility
src/shared/types/provider.ts, src/shared/providers/definitions/models/daoxe.ts, src/shared/utils/llm_utils.ts
Adds the DaoXE provider enum value, OpenAI-compatible model class, and compatibility whitelist entry.
Provider definition and registration
src/shared/providers/definitions/daoxe.ts, src/shared/providers/index.ts
Defines DaoXE defaults, model construction, display-name formatting, and provider registration.
Provider menu and icon
src/shared/models/index.ts, src/renderer/components/icons/ProviderIcon.tsx
Adds DaoXE display metadata, an enabled menu option, and a dedicated SVG icon.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ProviderIndex
  participant DaoXEProvider
  participant DaoXEModel
  ProviderIndex->>DaoXEProvider: register provider definition
  DaoXEProvider->>DaoXEModel: create with API, model, and generation settings
  DaoXEModel-->>DaoXEProvider: return configured OpenAI-compatible model
Loading

Possibly related PRs

  • chatboxai/chatbox#2514: Adds another OpenAI-compatible provider across shared provider registration and presentation surfaces.

Suggested reviewers: themez

Poem

A rabbit hops where DaoXE springs,
With three bright paths for icon wings.
The model joins the provider parade,
Its host and settings neatly laid.
“Hop, hop—new choices bloom today!”

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely matches the main change: adding the DaoXE provider.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seven7763

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@seven7763

Copy link
Copy Markdown
Author

Quick maintainer notes:

  • Provider is multi-protocol oriented (Chat Completions + related paths where Chatbox supports them); model list is live/account-driven rather than a hard-coded public price table.
  • Logo/assets follow the same pattern as other built-in providers in this repo.
  • Smoke: point Chatbox at DaoXE with a dashboard key + exact model ID from the account catalog.

Happy to rebase or tweak icons/labels if review feedback lands.

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