mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-05 23:40:57 +00:00
added ability to use pro mode, to do complex timeseries/location searches
This commit is contained in:
parent
7f547e580d
commit
cf1eeb86c3
12 changed files with 154 additions and 29 deletions
|
|
@ -27,6 +27,7 @@ export async function POST(req: NextRequest) {
|
|||
const spaces = url.searchParams.get("spaces");
|
||||
|
||||
const sourcesOnly = url.searchParams.get("sourcesOnly") ?? "false";
|
||||
const proMode = url.searchParams.get("proMode") === "true";
|
||||
|
||||
const jsonRequest = (await req.json()) as {
|
||||
chatHistory: ChatHistory[];
|
||||
|
|
@ -55,7 +56,7 @@ export async function POST(req: NextRequest) {
|
|||
const modelCompatible = await convertChatHistoryList(validated.data);
|
||||
|
||||
const resp = await fetch(
|
||||
`${process.env.BACKEND_BASE_URL}/api/chat?query=${query}&user=${session.user.id}&sourcesOnly=${sourcesOnly}&spaces=${spaces}`,
|
||||
`${process.env.BACKEND_BASE_URL}/api/chat?query=${query}&user=${session.user.id}&sourcesOnly=${sourcesOnly}&spaces=${spaces}&proMode=${proMode}`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${process.env.BACKEND_SECURITY_KEY}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue