Add new onde-cloud models
Co-Authored-By: siGit Code <noreply@sigit.si>
Seto Elkahfi committed
Sep 3, 2026 at 18:34 UTC
eecd1808d08650c8647fe86060eeaecfa7a7fe07
1 file changed
+18
-5
src/provider.rs
+18
-5
@@ -29,11 +29,19 @@ const DEFAULT_CLOUD_URL: &str = "https://sigit.si/api/v1";
29
/// largest). Always offered in `/models`; selecting one requires a signed-in
30
/// account.
31
///
32
-/// There are two lines because the cloud serves two independent families, and a
33
-/// tier is only routable when the cloud has that family configured. Which family
34
-/// is which, and what runs behind either, is deliberately not represented here:
35
-/// the client knows tier names and nothing else.
36
-pub const CLOUD_TIERS: &[&str] = &["fast", "balanced", "large", "mini", "air", "pro", "oke"];
32
+/// The tiers group into several independent lines, and a tier is only routable
33
+/// when the cloud has that line's family configured. Which family is which, and
34
+/// what runs behind any of them, is deliberately not represented here: the
35
+/// client knows tier names and nothing else.
36
+///
37
+/// This list mirrors onde-cloud's router catalogue (`src/router.rs`) and
38
+/// sigit-si's `CloudCatalog`. A tier the cloud serves but this list omits is
39
+/// simply invisible in `/models` and the editor picker, so all three sides have
40
+/// to be updated together when a tier is added.
41
+pub const CLOUD_TIERS: &[&str] = &[
42
+ "fast", "balanced", "large", "mini", "air", "pro", "oke", "flux", "apex", "aura", "orbit",
43
+ "nova",
44
+];
45
46
/// Base URL of the siGit Code Cloud inference endpoint. Override with
47
/// `SIGIT_CLOUD_URL` (dev: `http://localhost:8090/v1`).
@@ -70,6 +78,11 @@ fn tier_to_model(tier: &str) -> String {
78
"air" => "onde-air",
79
"pro" => "onde-pro",
80
"oke" => "onde-kkk",
81
+ "flux" => "onde-flux",
82
+ "apex" => "onde-apex",
83
+ "aura" => "onde-aura",
84
+ "orbit" => "onde-orbit",
85
+ "nova" => "onde-nova",
86
other => other,
87
}
88
.to_string()