Skip to content
Draft
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
1 change: 1 addition & 0 deletions src-tauri/src/chat_manager/provider_adapter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ pub fn adapter_for(credential: &ProviderCredential) -> Box<dyn ProviderAdapter +
"nanogpt" => Box::new(nanogpt::NanoGPTAdapter),
"xai" => Box::new(xai::XAIAdapter),
"anannas" => Box::new(anannas::AnannasAdapter),
"concentrate" => Box::new(openai::OpenAIAdapter),
"google" | "google-gemini" | "gemini" => Box::new(google_gemini::GoogleGeminiAdapter),
"gemini-agent-platform-express" => {
Box::new(gemini_agent_platform_express::GeminiAgentPlatformExpressAdapter::new())
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/providers/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ fn get_all_provider_configs_internal() -> Vec<ProviderConfig> {
"https://integrate.api.nvidia.com/v1",
),
("anannas", "Anannas AI", "https://api.anannas.ai/v1"),
("concentrate", "Concentrate", "https://api.concentrate.ai/v1"),
("groq", "Groq", "https://api.groq.com"),
("stability", "Stability AI", "https://api.stability.ai"),
(
Expand Down
1 change: 1 addition & 0 deletions src/assets/concentrate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions src/core/storage/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,14 @@ export const PROVIDER_REASONING_CAPABILITIES: Record<string, ReasoningCapability
{ value: "high", label: "High", description: "Deep reasoning" },
],
},
concentrate: {
type: "effort",
options: [
{ value: "low", label: "Low", description: "Quick responses" },
{ value: "medium", label: "Medium", description: "Balanced" },
{ value: "high", label: "High", description: "Deep reasoning" },
],
},
zai: {
type: "effort",
options: [
Expand Down Expand Up @@ -1826,6 +1834,61 @@ export const PROVIDER_PARAMETER_SUPPORT = {
ollamaStop: false,
},
},
concentrate: {
providerId: "concentrate",
displayName: "Concentrate",
reasoningSupport: "effort" as ReasoningSupport,
supportedParameters: {
temperature: true,
topP: true,
maxOutputTokens: true,
contextLength: false,
frequencyPenalty: true,
presencePenalty: false, // accepted by the API but has no effect
topK: false,
reasoningEnabled: true,
reasoningEffort: true,
reasoningBudgetTokens: false,
llamaGpuLayers: false,
llamaThreads: false,
llamaThreadsBatch: false,
llamaSeed: false,
llamaRopeFreqBase: false,
llamaRopeFreqScale: false,
llamaOffloadKqv: false,
llamaBatchSize: false,
llamaKvType: false,
llamaFlashAttention: false,
llamaChatTemplateOverride: false,
llamaMmprojPath: false,
llamaChatTemplatePreset: false,
llamaRawCompletionFallback: false,
llamaSamplerProfile: false,
llamaSamplerOrder: false,
llamaMinP: false,
llamaTypicalP: false,
llamaDryMultiplier: false,
llamaDryBase: false,
llamaDryAllowedLength: false,
llamaDryPenaltyLastN: false,
llamaDrySequenceBreakers: false,
ollamaNumCtx: false,
ollamaNumPredict: false,
ollamaNumKeep: false,
ollamaNumBatch: false,
ollamaNumGpu: false,
ollamaNumThread: false,
ollamaTfsZ: false,
ollamaTypicalP: false,
ollamaMinP: false,
ollamaMirostat: false,
ollamaMirostatTau: false,
ollamaMirostatEta: false,
ollamaRepeatPenalty: false,
ollamaSeed: false,
ollamaStop: false,
},
},
zai: {
providerId: "zai",
displayName: "ZAI (Zhipu / GLM)",
Expand Down
2 changes: 2 additions & 0 deletions src/core/utils/providerIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import LlamaCppIcon from "../../assets/llama-cpp.svg";
import IntenserpIcon from "../../assets/intenserp.png";
import GroqIcon from "../../assets/groq.svg";
import PollinationsIcon from "../../assets/pollinations.svg";
import ConcentrateIcon from "../../assets/concentrate.svg";
import StableDiffusionCppIcon from "../../assets/stable-diffusion-cpp.png";

const ICON_MAP: Record<string, ReactElement> = {
Expand All @@ -57,6 +58,7 @@ const ICON_MAP: Record<string, ReactElement> = {
featherless: <img src={FeatherlessIcon} alt="Featherless" className="h-6 w-6" />,
nvidia: <img src={NvidiaIcon} alt="NVIDIA" className="h-6 w-6" />,
chutes: <img src={ChutesAIIcon} alt="Chutes" className="h-6 w-6" />,
concentrate: <img src={ConcentrateIcon} alt="Concentrate" className="h-6 w-6" />,
ollama: <img src={OllamaIcon} alt="Ollama" className="h-6 w-6" />,
lmstudio: <img src={LMStudioIcon} alt="LM Studio" className="h-6 w-6" />,
intenserp: <img src={IntenserpIcon} alt="IntenseRP Next" className="h-6 w-6" />,
Expand Down
3 changes: 3 additions & 0 deletions src/ui/components/ModelSelectorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { Model } from "../../core/storage/schemas";
import { useI18n } from "../../core/i18n/context";
import GroqIcon from "../../assets/groq.svg";
import CerebrasIcon from "../../assets/cerebras.svg";
import ConcentrateIcon from "../../assets/concentrate.svg";

// Provider icons - matching the character settings
function getProviderIcon(providerId: string) {
Expand Down Expand Up @@ -40,6 +41,8 @@ function getProviderIcon(providerId: string) {
);
case "groq":
return <img src={GroqIcon} alt="Groq" className={iconClass} />;
case "concentrate":
return <img src={ConcentrateIcon} alt="Concentrate" className={iconClass} />;
default:
return <Cpu className={iconClass + " text-white/50"} />;
}
Expand Down