aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/cf-ai-backend/wrangler.toml10
-rw-r--r--apps/web/app/(dash)/home/queryinput.tsx5
-rw-r--r--apps/web/app/actions/doers.ts2
-rw-r--r--apps/web/wrangler.toml8
4 files changed, 14 insertions, 11 deletions
diff --git a/apps/cf-ai-backend/wrangler.toml b/apps/cf-ai-backend/wrangler.toml
index d1e2d0c0..ea93fd63 100644
--- a/apps/cf-ai-backend/wrangler.toml
+++ b/apps/cf-ai-backend/wrangler.toml
@@ -4,13 +4,13 @@ compatibility_date = "2024-02-23"
node_compat = true
# [env.preview]
-# [[vectorize]]
-# binding = "VECTORIZE_INDEX"
-# index_name = "supermem-vector-dev"
-
[[vectorize]]
binding = "VECTORIZE_INDEX"
-index_name = "supermem-vector-prod"
+index_name = "supermem-vector-dev"
+
+# [[vectorize]]
+# binding = "VECTORIZE_INDEX"
+# index_name = "supermem-vector-prod"
[ai]
binding = "AI"
diff --git a/apps/web/app/(dash)/home/queryinput.tsx b/apps/web/app/(dash)/home/queryinput.tsx
index 46038225..99476e40 100644
--- a/apps/web/app/(dash)/home/queryinput.tsx
+++ b/apps/web/app/(dash)/home/queryinput.tsx
@@ -85,7 +85,10 @@ function QueryInput({
<button
type="submit"
- onClick={(e) => e.preventDefault()}
+ onClick={(e) => {
+ e.preventDefault();
+ handleSubmit(q, preparedSpaces);
+ }}
disabled={disabled}
className="h-12 w-12 rounded-[14px] bg-[#21303D] all-center shrink-0 hover:brightness-125 duration-200 outline-none focus:outline focus:outline-primary active:scale-90"
>
diff --git a/apps/web/app/actions/doers.ts b/apps/web/app/actions/doers.ts
index be49f18b..99a1b719 100644
--- a/apps/web/app/actions/doers.ts
+++ b/apps/web/app/actions/doers.ts
@@ -193,7 +193,7 @@ export const createMemory = async (input: {
if (!vectorSaveResponse.ok) {
const errorData = await vectorSaveResponse.text();
- console.log(errorData);
+ console.error(errorData);
return {
success: false,
data: 0,
diff --git a/apps/web/wrangler.toml b/apps/web/wrangler.toml
index da9cd616..a2ac88d0 100644
--- a/apps/web/wrangler.toml
+++ b/apps/web/wrangler.toml
@@ -14,8 +14,8 @@ bucket_name = "dev-r2-anycontext"
[[d1_databases]]
binding = "DATABASE"
-# database_name = "prod-d1-supermemory"
-# database_id = "f527a727-c472-41d4-8eaf-3d7ba0f2f395"
+database_name = "prod-d1-supermemory"
+database_id = "f527a727-c472-41d4-8eaf-3d7ba0f2f395"
-database_name = "dev-d1-anycontext"
-database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c" \ No newline at end of file
+# database_name = "dev-d1-anycontext"
+# database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c" \ No newline at end of file