Skip to content

add submodel.ai - #1915

Merged
seefs001 merged 71 commits into
QuantumNous:alphafrom
danding5:main
Sep 29, 2025
Merged

add submodel.ai#1915
seefs001 merged 71 commits into
QuantumNous:alphafrom
danding5:main

Conversation

@danding5

@danding5 danding5 commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added “SubModel” channel with adaptor and endpoint support.
    • Expanded default model list and edit modal options for SubModel.
    • Added pricing/ratio presets for multiple new models to improve cost display and calculations.
    • Enabled selecting “SubModel” in channel options.
  • Style

    • Adjusted pricing description rendering by removing some localization wrappers, showing fixed strings for extra services and input/output descriptions.

danding5 and others added 30 commits September 8, 2025 16:21
# Conflicts:
#	common/api_type.go
#	constant/api_type.go
#	constant/channel.go
#	relay/relay_adaptor.go
#	web/src/constants/channel.constants.js
增加并发支持
将连接延迟关闭逻辑调整到协程中执行,防止在完全接收到所有数据前提前关闭
- Création du fichier de traduction `fr.json` en se basant sur `en.json`.
- Mise à jour de la configuration i18n pour inclure la langue française.
- Modification du sélecteur de langue pour afficher l'option "Français" avec le drapeau correspondant.
- Création du fichier `README.fr.md` en se basant sur `README.en.md`.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
constant/api_type.go (1)

34-36: Add an explicit count alias to prevent future regressions.

Define a clear alias so callers don’t accidentally use a non‑sentinel as the bound.

 package constant

 const (
@@
-     APITypeSubmodel
-     APITypeDummy    // this one is only for count, do not add any channel after this
+     APITypeSubmodel
+     APITypeDummy    // this one is only for count, do not add any channel after this
 )
+
+// Use APITypeCount as the canonical upper bound in loops/arrays.
+const APITypeCount = APITypeDummy
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8c5b665 and fc2d992.

📒 Files selected for processing (1)
  • constant/api_type.go (1 hunks)
🔇 Additional comments (2)
constant/api_type.go (2)

34-36: Correct sentinel ordering — LGTM.

Submodel is placed before Dummy, and Dummy remains the terminal “count” sentinel. This resolves the earlier blocker about not appending after Dummy and keeps prior iota values stable.


34-36: No remaining sentinel-bound usages of APITypeMoonshot
Ripgrep confirms no loops, array lengths, or casts use APITypeMoonshot as an upper bound; existing case clauses are valid.

@seefs001 seefs001 self-assigned this Sep 29, 2025
@seefs001
seefs001 self-requested a review September 29, 2025 13:51
@seefs001
seefs001 changed the base branch from main to alpha September 29, 2025 13:53
@seefs001
seefs001 merged commit 83b2b07 into QuantumNous:alpha Sep 29, 2025
1 check passed
@coderabbitai coderabbitai Bot mentioned this pull request Jan 14, 2026
x22x22 pushed a commit to x22x22/new-api that referenced this pull request Apr 24, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Jun 5, 2026
11 tasks
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.

9 participants