Skip to content

feat(provider): add AiOnly provider preset#3797

Open
kongzi10 wants to merge 1 commit into
chatboxai:mainfrom
kongzi10:main
Open

feat(provider): add AiOnly provider preset#3797
kongzi10 wants to merge 1 commit into
chatboxai:mainfrom
kongzi10:main

Conversation

@kongzi10

@kongzi10 kongzi10 commented Jul 15, 2026

Copy link
Copy Markdown

Description

This pull request adds support for the AiOnly provider preset.

The purpose of this change is to make AiOnly provider configuration easier for users by adding a built-in provider preset, reducing the need for manual configuration.

Changes

  • Added AiOnly provider preset configuration
  • Updated provider preset definitions
  • Added related provider settings and default parameters
  • Improved provider selection compatibility
  • Updated corresponding configuration files

Additional Notes

This change only adds a new provider preset and does not modify existing provider behavior.

Screenshots

[Optional: Include screenshots that help explain your PR]

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.

Please check the box below to confirm:

  • I have read and agree with the above statement.

Summary by CodeRabbit

  • New Features
    • Added AiOnly as a selectable AI provider.
    • Added support for AiOnly models, including model names, capabilities, and context limits.
    • Added configuration for connecting to the AiOnly API with streaming and generation controls.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: be0cfdd4-d3d1-44bd-97f2-2f593c9db619

📥 Commits

Reviewing files that changed from the base of the PR and between 8639c94 and 435b450.

⛔ Files ignored due to path filters (1)
  • src/renderer/static/icons/providers/aionly.png is excluded by !**/*.png
📒 Files selected for processing (5)
  • src/shared/models/index.ts
  • src/shared/providers/definitions/aionly.ts
  • src/shared/providers/definitions/models/aionly.ts
  • src/shared/providers/index.ts
  • src/shared/types/provider.ts

Walkthrough

Adds AiOnly as a selectable provider, defines its models and metadata, connects model creation to the AiOnly API, and registers it in the provider registry.

Changes

AiOnly provider integration

Layer / File(s) Summary
Provider identifier and client adapter
src/shared/types/provider.ts, src/shared/providers/definitions/models/aionly.ts
Adds ModelProviderEnum.Aionly and an Aionly client extending OpenAICompatible with the AiOnly API host.
Provider catalog and model factory
src/shared/providers/definitions/aionly.ts
Defines AiOnly metadata, available models, capabilities, model construction, and display-name formatting.
Registry and model menu exposure
src/shared/providers/index.ts, src/shared/models/index.ts
Registers the provider and adds an enabled “AiOnly API” model-provider menu option.

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

Sequence Diagram(s)

sequenceDiagram
  participant ModelMenu
  participant aionlyProvider
  participant Aionly
  ModelMenu->>aionlyProvider: select AiOnly model
  aionlyProvider->>Aionly: createModel with API and generation settings
  Aionly-->>aionlyProvider: return configured provider client
Loading

Suggested reviewers: themez

Poem

A rabbit taps a brand-new key,
AiOnly models hop in free.
The menu blooms, the clients race,
Through streaming clouds to API space.
“Carrots and code!” we cheer with glee.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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 AiOnly provider preset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ 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.

@kongzi10 kongzi10 changed the title Add AiOnly provider preset feat(provider): add AiOnly provider preset Jul 15, 2026
@kongzi10

Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 20, 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.

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