mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
feat(web): drop the Web research row from Company Brain models (#1600)
The `research` / `researchEffort` model role no longer exists on the API, so remove its card, its preset entries, and its types.
This commit is contained in:
parent
9652478093
commit
f11d8c4620
2 changed files with 4 additions and 24 deletions
|
|
@ -90,13 +90,6 @@ const ROWS: {
|
||||||
effortHelp:
|
effortHelp:
|
||||||
"Deeper thinking routes messages more carefully but takes longer.",
|
"Deeper thinking routes messages more carefully but takes longer.",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
role: "research",
|
|
||||||
effortKey: "researchEffort",
|
|
||||||
title: "Web research",
|
|
||||||
help: "Looks things up on the web when researching your company.",
|
|
||||||
effortHelp: "Deeper research per web search, at the cost of speed.",
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
type FullConfig = Required<BrainModelConfig>
|
type FullConfig = Required<BrainModelConfig>
|
||||||
|
|
@ -132,10 +125,8 @@ const PRESETS: PresetDef[] = [
|
||||||
? "grok-4-fast"
|
? "grok-4-fast"
|
||||||
: defaults.main,
|
: defaults.main,
|
||||||
triage: defaults.triage,
|
triage: defaults.triage,
|
||||||
research: defaults.research,
|
|
||||||
mainEffort: pickEffort(choices.mainEffort, "low", "low"),
|
mainEffort: pickEffort(choices.mainEffort, "low", "low"),
|
||||||
triageEffort: pickEffort(choices.triageEffort, "low", "low"),
|
triageEffort: pickEffort(choices.triageEffort, "low", "low"),
|
||||||
researchEffort: pickEffort(choices.researchEffort, "low", "low"),
|
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -145,35 +136,24 @@ const PRESETS: PresetDef[] = [
|
||||||
build: (defaults) => ({
|
build: (defaults) => ({
|
||||||
main: defaults.main,
|
main: defaults.main,
|
||||||
triage: defaults.triage,
|
triage: defaults.triage,
|
||||||
research: defaults.research,
|
|
||||||
mainEffort: defaults.mainEffort ?? "high",
|
mainEffort: defaults.mainEffort ?? "high",
|
||||||
triageEffort: defaults.triageEffort ?? "low",
|
triageEffort: defaults.triageEffort ?? "low",
|
||||||
researchEffort: defaults.researchEffort ?? "high",
|
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "thorough",
|
id: "thorough",
|
||||||
label: "Most thorough",
|
label: "Most thorough",
|
||||||
description: "Deepest answers and research. Slower, uses more credits.",
|
description: "Deepest answers. Slower, uses more credits.",
|
||||||
build: (defaults, choices) => ({
|
build: (defaults, choices) => ({
|
||||||
main: defaults.main,
|
main: defaults.main,
|
||||||
triage: defaults.triage,
|
triage: defaults.triage,
|
||||||
research: defaults.research,
|
|
||||||
mainEffort: pickEffort(choices.mainEffort, "xhigh", "high"),
|
mainEffort: pickEffort(choices.mainEffort, "xhigh", "high"),
|
||||||
triageEffort: pickEffort(choices.triageEffort, "medium", "low"),
|
triageEffort: pickEffort(choices.triageEffort, "medium", "low"),
|
||||||
researchEffort: pickEffort(choices.researchEffort, "xhigh", "high"),
|
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const CONFIG_KEYS = [
|
const CONFIG_KEYS = ["main", "triage", "mainEffort", "triageEffort"] as const
|
||||||
"main",
|
|
||||||
"triage",
|
|
||||||
"research",
|
|
||||||
"mainEffort",
|
|
||||||
"triageEffort",
|
|
||||||
"researchEffort",
|
|
||||||
] as const
|
|
||||||
|
|
||||||
const extraHighIsBounded = (model: string): boolean =>
|
const extraHighIsBounded = (model: string): boolean =>
|
||||||
model.startsWith("grok-") || model.startsWith("gpt-")
|
model.startsWith("grok-") || model.startsWith("gpt-")
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ const BACKEND =
|
||||||
process.env.NEXT_PUBLIC_BACKEND_URL ?? "https://api.supermemory.ai"
|
process.env.NEXT_PUBLIC_BACKEND_URL ?? "https://api.supermemory.ai"
|
||||||
const BASE = `${BACKEND}/brain/models`
|
const BASE = `${BACKEND}/brain/models`
|
||||||
|
|
||||||
export type BrainModelRole = "main" | "triage" | "research"
|
export type BrainModelRole = "main" | "triage"
|
||||||
export type BrainReasoningEffort = "auto" | "low" | "medium" | "high" | "xhigh"
|
export type BrainReasoningEffort = "auto" | "low" | "medium" | "high" | "xhigh"
|
||||||
export type BrainReasoningKey = "mainEffort" | "triageEffort" | "researchEffort"
|
export type BrainReasoningKey = "mainEffort" | "triageEffort"
|
||||||
|
|
||||||
export type BrainModelConfig = Record<BrainModelRole, string> &
|
export type BrainModelConfig = Record<BrainModelRole, string> &
|
||||||
Partial<Record<BrainReasoningKey, BrainReasoningEffort>>
|
Partial<Record<BrainReasoningKey, BrainReasoningEffort>>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue