Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions apps/desktop-tauri/src/components/providers/providerIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import minimax from "./icons/ProviderIcon-minimax.svg?raw";
import mistral from "./icons/ProviderIcon-mistral.svg?raw";
import muse from "./icons/ProviderIcon-muse.svg?raw";
import notion from "./icons/ProviderIcon-notion.svg?raw";
import nous from "./icons/ProviderIcon-nous.svg?raw";
import xai from "./icons/ProviderIcon-xai.svg?raw";
import ollama from "./icons/ProviderIcon-ollama.svg?raw";
import opencode from "./icons/ProviderIcon-opencode.svg?raw";
Expand Down Expand Up @@ -131,6 +132,7 @@ const RAW: Record<string, string> = {
mimo: tint(mimo),
minimax: tint(minimax),
notion: tint(notion),
nous: tint(nous),
xai: tint(xai),
mistral: tint(mistral),
muse: tint(muse),
Expand Down Expand Up @@ -232,6 +234,7 @@ export const PROVIDER_ICON_REGISTRY: Record<string, ProviderIcon> = {
zed: { id: "zed", brandColor: "#084ccf", fallbackLetter: "Z" },
qwencloud: { id: "qwencloud", brandColor: "#615CED", fallbackLetter: "Q" },
notion: { id: "notion", brandColor: "#337EA9", fallbackLetter: "N", svgPath: RAW.notion },
nous: { id: "nous", brandColor: "#D6A55C", fallbackLetter: "N", svgPath: RAW.nous },
xai: { id: "xai", brandColor: "#8e8e93", fallbackLetter: "X", svgPath: RAW.xai },
meta: { id: "meta", brandColor: "#0467DF", fallbackLetter: "M", svgPath: RAW.meta },
};
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop-tauri/src/surfaces/TrayPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const HAS_DASHBOARD = new Set([
"mimo", "minimax", "mistral", "nanogpt", "notion", "ollama", "openaiapi",
"opencode", "opencodego", "openrouter", "perplexity", "qoder", "codebuddy", "sakana", "stepfun",
"t3chat", "venice", "vertexai", "warp", "windsurf",
"xai", "zai", "fireworks", "meta", "muse",
"xai", "zai", "fireworks", "meta", "muse", "nous",
]);
/** Provider IDs that have a status page URL in the backend */
const HAS_STATUS_PAGE = new Set([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const POLICIES: Readonly<Record<string, UsageSourcePolicy>> = {
},
],
},
nous: {
options: [
{ value: "auto", label: "Auto", description: "Uses the Hermes Agent login or the configured Nous token." },
{ value: "oauth", label: "Hermes OAuth", description: "Uses the read-only Nous Portal token from Hermes Agent." },
],
},
muse: {
options: [
{ value: "auto", label: "Auto", description: "Uses the local Muse Code device login." },
Expand Down
1 change: 1 addition & 0 deletions apps/desktop-tauri/src/test/providerCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ export const TEST_PROVIDER_CATALOG: Array<[string, string]> = [
["replicate", "Replicate"],
["meta", "Meta"],
["muse", "Muse Code"],
["nous", "Nous Portal"],
];
4 changes: 4 additions & 0 deletions rust/src/cli/serve/dashboard/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ static ICONS: &[(&str, &[u8])] = &[
"ProviderIcon-notion",
include_bytes!("icons/ProviderIcon-notion.svg"),
),
(
"ProviderIcon-nous",
include_bytes!("icons/ProviderIcon-nous.svg"),
),
(
"ProviderIcon-ollama",
include_bytes!("icons/ProviderIcon-ollama.svg"),
Expand Down
4 changes: 4 additions & 0 deletions rust/src/cli/serve/dashboard/icons/ProviderIcon-nous.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion rust/src/core/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pub enum ProviderId {
Meta,
Muse,
Replicate,
Nous,
}

impl ProviderId {
Expand Down Expand Up @@ -169,6 +170,7 @@ impl ProviderId {
ProviderId::Meta,
ProviderId::Muse,
ProviderId::Replicate,
ProviderId::Nous,
]
}

Expand Down Expand Up @@ -214,6 +216,7 @@ impl ProviderId {
ProviderId::Fireworks => "fireworks",
ProviderId::Meta => "meta",
ProviderId::Muse => "muse",
ProviderId::Nous => "nous",
ProviderId::AiAnd => "aiand",
ProviderId::Windsurf => "windsurf",
ProviderId::Manus => "manus",
Expand Down Expand Up @@ -296,6 +299,7 @@ impl ProviderId {
ProviderId::Fireworks => "Fireworks",
ProviderId::Meta => "Meta",
ProviderId::Muse => "Muse Code",
ProviderId::Nous => "Nous Portal",
ProviderId::AiAnd => "ai&",
ProviderId::Windsurf => "Windsurf",
ProviderId::Manus => "Manus",
Expand Down Expand Up @@ -393,6 +397,7 @@ impl ProviderId {
ProviderId::Fireworks => None,
ProviderId::Meta => None,
ProviderId::Muse => None,
ProviderId::Nous => None,
ProviderId::AiAnd => None,
ProviderId::Windsurf => None,
ProviderId::Doubao => None,
Expand Down Expand Up @@ -468,6 +473,7 @@ impl ProviderId {
"deepinfra" | "deep-infra" | "di" => Some(ProviderId::DeepInfra),
"fireworks" | "fireworks-ai" | "fw" => Some(ProviderId::Fireworks),
"muse" | "muse-code" | "muse code" => Some(ProviderId::Muse),
"nous" | "nous-portal" | "nous portal" | "hermes" => Some(ProviderId::Nous),
"meta" | "metaspark" | "meta-spark" | "muse-spark" | "musespark" | "muse spark"
| "meta muse spark" => Some(ProviderId::Meta),
"aiand" | "ai&" | "ai-and" | "ai and" => Some(ProviderId::AiAnd),
Expand Down Expand Up @@ -925,6 +931,9 @@ pub fn cli_name_map() -> HashMap<&'static str, ProviderId> {
map.insert("fw", ProviderId::Fireworks);
map.insert("muse-code", ProviderId::Muse);
map.insert("muse code", ProviderId::Muse);
map.insert("nous-portal", ProviderId::Nous);
map.insert("nous portal", ProviderId::Nous);
map.insert("hermes", ProviderId::Nous);
map.insert("metaspark", ProviderId::Meta);
map.insert("meta-spark", ProviderId::Meta);
map.insert("muse-spark", ProviderId::Meta);
Expand Down Expand Up @@ -1065,6 +1074,7 @@ pub fn brand_color(id: ProviderId) -> &'static str {
ProviderId::Meta => "#0467DF",
ProviderId::Muse => "#0668E1",
ProviderId::Replicate => "#000000",
ProviderId::Nous => "#D6A55C",
}
}

Expand All @@ -1079,7 +1089,7 @@ mod tests {
#[test]
fn test_provider_id_all() {
let all = ProviderId::all();
assert_eq!(all.len(), 75);
assert_eq!(all.len(), 76);
assert!(all.contains(&ProviderId::Claude));
assert!(all.contains(&ProviderId::Codex));
assert!(all.contains(&ProviderId::Fireworks));
Expand Down Expand Up @@ -1135,6 +1145,7 @@ mod tests {
assert!(all.contains(&ProviderId::Meta));
assert!(all.contains(&ProviderId::Replicate));
assert!(all.contains(&ProviderId::Muse));
assert!(all.contains(&ProviderId::Nous));
}

#[test]
Expand Down
5 changes: 3 additions & 2 deletions rust/src/core/provider_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use crate::providers::{
GrokProvider, GroqProvider, HuggingFaceProvider, InfiniProvider, JetBrainsProvider,
KiloProvider, KimiK2Provider, KimiProvider, KiroProvider, LLMProxyProvider, LiteLLMProvider,
LongCatProvider, ManusProvider, MetaProvider, MiMoProvider, MiniMaxProvider, MistralProvider,
MuseProvider, NanoGPTProvider, NeuralwattProvider, NotionProvider, OllamaProvider,
OpenAIApiProvider, OpenCodeGoProvider, OpenCodeProvider, OpenRouterProvider,
MuseProvider, NanoGPTProvider, NeuralwattProvider, NotionProvider, NousProvider,
OllamaProvider, OpenAIApiProvider, OpenCodeGoProvider, OpenCodeProvider, OpenRouterProvider,
PerplexityProvider, PoeProvider, QoderProvider, QwenCloudProvider, ReplicateProvider,
SakanaProvider, StepFunProvider, Sub2ApiProvider, T3ChatProvider, VeniceProvider,
VertexAIProvider, WarpProvider, WayfinderProvider, WindsurfProvider, XaiProvider, ZaiProvider,
Expand Down Expand Up @@ -105,6 +105,7 @@ pub fn instantiate(id: ProviderId) -> Box<dyn Provider> {
ProviderId::Fireworks => Box::new(FireworksProvider::new()),
ProviderId::Meta => Box::new(MetaProvider::new()),
ProviderId::Muse => Box::new(MuseProvider::new()),
ProviderId::Nous => Box::new(NousProvider::new()),
}
}

Expand Down
1 change: 1 addition & 0 deletions rust/src/core/token_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ impl TokenAccountSupport {
| ProviderId::QwenCloud
| ProviderId::Fireworks
| ProviderId::Meta
| ProviderId::Nous
| ProviderId::Muse => None,
}
}
Expand Down
2 changes: 2 additions & 0 deletions rust/src/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub mod muse;
pub mod nanogpt;
pub mod neuralwatt;
pub mod notion;
pub mod nous;
pub mod ollama;
pub mod openai;
pub mod openaiapi;
Expand Down Expand Up @@ -134,6 +135,7 @@ pub use muse::MuseProvider;
pub use nanogpt::NanoGPTProvider;
pub use neuralwatt::NeuralwattProvider;
pub use notion::NotionProvider;
pub use nous::NousProvider;
pub use ollama::OllamaProvider;
pub use openaiapi::OpenAIApiProvider;
pub use opencode::OpenCodeProvider;
Expand Down
Loading