Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 6 additions & 0 deletions frontend/src/components/ModelSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ export const MODEL_CONFIG: Record<string, ModelCfg> = {
requiresPro: true,
tokenLimit: 64000
},
"deepseek-r1-0528": {
displayName: "DeepSeek R1 0528 671B",
badge: "Pro",
requiresPro: true,
tokenLimit: 130000
},
"mistral-small-3-1-24b": {
displayName: "Mistral Small 3.1 24B",
badge: "Pro",
Expand Down
25 changes: 25 additions & 0 deletions frontend/src/config/pricingConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const PRICING_PLANS: PricingPlan[] = [
{ text: "Rename Chats", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{ text: "Image Upload", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{ text: "DeepSeek R1 70B", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{
text: "DeepSeek R1 0528 671B",
included: false,
icon: <X className="w-4 h-4 text-red-500" />
},
{ text: "Gemma 3 27B", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{
text: "Mistral Small 3.1 24B",
Expand Down Expand Up @@ -76,6 +81,11 @@ export const PRICING_PLANS: PricingPlan[] = [
},
{ text: "Gemma 3 27B", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{ text: "DeepSeek R1 70B", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{
text: "DeepSeek R1 0528 671B",
included: false,
icon: <X className="w-4 h-4 text-red-500" />
},
{
text: "Mistral Small 3.1 24B",
included: false,
Expand Down Expand Up @@ -107,6 +117,11 @@ export const PRICING_PLANS: PricingPlan[] = [
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{
text: "DeepSeek R1 0528 671B",
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{ text: "Gemma 3 27B", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{
text: "Mistral Small 3.1 24B",
Expand Down Expand Up @@ -153,6 +168,11 @@ export const PRICING_PLANS: PricingPlan[] = [
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{
text: "DeepSeek R1 0528 671B",
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{ text: "Gemma 3 27B", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{
text: "Mistral Small 3.1 24B",
Expand Down Expand Up @@ -208,6 +228,11 @@ export const PRICING_PLANS: PricingPlan[] = [
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{
text: "DeepSeek R1 0528 671B",
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{ text: "Gemma 3 27B", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{
text: "Mistral Small 3.1 24B",
Expand Down
20 changes: 11 additions & 9 deletions frontend/src/routes/_auth.chat.$chatId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,18 @@ function ChatComponent() {
setUserImages([]);

// Send message with system prompt as separate parameter
appendUserMessage(prompt, images, undefined, undefined, sysPrompt || undefined).catch((error) => {
// Only reset if it wasn't an abort
if (!(error instanceof Error) || error.message !== "Stream aborted") {
console.error("[ChatComponent] Failed to append message:", error);
setUserPrompt(prompt);
setSystemPrompt(sysPrompt);
setUserImages(images);
initialPromptProcessedRef.current = false;
appendUserMessage(prompt, images, undefined, undefined, sysPrompt || undefined).catch(
(error) => {
// Only reset if it wasn't an abort
if (!(error instanceof Error) || error.message !== "Stream aborted") {
console.error("[ChatComponent] Failed to append message:", error);
setUserPrompt(prompt);
setSystemPrompt(sysPrompt);
setUserImages(images);
initialPromptProcessedRef.current = false;
}
}
});
);
}
}, [
userPrompt,
Expand Down