minor fixes

This commit is contained in:
Dhravya 2024-06-24 23:25:35 -05:00
parent eee719651b
commit e38a932efd
4 changed files with 14 additions and 11 deletions

View file

@ -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"

View file

@ -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"
>

View file

@ -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,

View file

@ -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"
# database_name = "dev-d1-anycontext"
# database_id = "fc562605-157a-4f60-b439-2a24ffed5b4c"