Add onde-mini, onde-air, and onde-pro models selection on siGit Code Cloud

paydii committed Aug 11, 2026 at 15:16 UTC 96626094dc1425f47d1dbd42248c685cd2746cb2
1 file changed +12 -3
src/provider.rs
+12 -3
@@ -25,9 +25,15 @@ use serde::Deserialize;
25 /// `SIGIT_CLOUD_URL` (dev: `http://localhost:8088/api/v1`).
26 const DEFAULT_CLOUD_URL: &str = "https://sigit.si/api/v1";
27
28 -/// The cloud quality tiers, in display order. Always offered in `/models`;
29 -/// selecting one requires a signed-in account.
30 -pub const CLOUD_TIERS: &[&str] = &["fast", "balanced", "large"];
28 +/// The cloud quality tiers, in display order (each line ordered smallest to
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"];
37
38 /// Base URL of the siGit Code Cloud inference endpoint. Override with
39 /// `SIGIT_CLOUD_URL` (dev: `http://localhost:8090/v1`).
@@ -60,6 +66,9 @@ fn tier_to_model(tier: &str) -> String {
66 "fast" => "onde-fast",
67 "balanced" => "onde-balanced",
68 "large" => "onde-large",
69 + "mini" => "onde-mini",
70 + "air" => "onde-air",
71 + "pro" => "onde-pro",
72 other => other,
73 }
74 .to_string()