Mohan
Mohan
Explore posts from servers
WWasp-lang
Created by Mohan on 9/23/2024 in #đŸ™‹questions
how do write to my entity from custom api
@kapa.ai how do i run my client in a custom port
12 replies
WWasp-lang
Created by Mohan on 9/23/2024 in #đŸ™‹questions
how do write to my entity from custom api
@kapa.ai how do i run my client in a custom port
12 replies
WWasp-lang
Created by Mohan on 9/23/2024 in #đŸ™‹questions
how do write to my entity from custom api
oh yeh got it
12 replies
WWasp-lang
Created by Mohan on 7/2/2024 in #đŸ™‹questions
Connecting to socials
got it thanks, just realising 1 year before we didnt have any of these. llm's made everything so much easier
10 replies
WWasp-lang
Created by Mohan on 7/2/2024 in #đŸ™‹questions
Connecting to socials
@miho is it possible to access the bot directly instead of discord?
10 replies
WWasp-lang
Created by Mohan on 7/2/2024 in #đŸ™‹questions
Connecting to socials
@miho thanks, I asked if even those were scaffolded. I have implemented the insta login now. Thanks
10 replies
WWasp-lang
Created by Mohan on 6/16/2024 in #đŸ™‹questions
sample code for reading a document from db and parsing it to json from the action
@kapa.ai so json.stringify made it into string but instead i have to read a key called comments which has array how do i do it
22 replies
WWasp-lang
Created by Mohan on 6/16/2024 in #đŸ™‹questions
sample code for reading a document from db and parsing it to json from the action
@kapa.ai I have this const post = await context.entities.PostComments.findUnique({ where: { postId: args.postId } }) If i do JSON.stringify(post) i get an error saying Argument of type '(GetResult<{ id: string; postId: string; comments: JsonValue; createdAt: Date; updatedAt: Date; }, unknown> & {}) | Promise<GetResult<{ id: string; postId: string; comments: JsonValue; createdAt: Date; updatedAt: Date; }, unknown> & {}>' is not assignable to parameter of type 'SetStateAction<any[]>'
22 replies
WWasp-lang
Created by Mohan on 6/16/2024 in #đŸ™‹questions
sample code for reading a document from db and parsing it to json from the action
@kapa.ai ?
22 replies
WWasp-lang
Created by Mohan on 6/16/2024 in #đŸ™‹questions
sample code for reading a document from db and parsing it to json from the action
@kapa.ai I have this const post = await context.entities.PostComments.findUnique({ where: { postId: args.postId } })
If i do JSON.stringify(post) i get an error saying Argument of type '(GetResult<{ id: string; postId: string; comments: JsonValue; createdAt: Date; updatedAt: Date; }, unknown> & {}) | Promise<GetResult<{ id: string; postId: string; comments: JsonValue; createdAt: Date; updatedAt: Date; }, unknown> & {}>' is not assignable to parameter of type 'SetStateAction<any[]>'.
22 replies
WWasp-lang
Created by Mohan on 6/16/2024 in #đŸ™‹questions
sample code for reading a document from db and parsing it to json from the action
@kapa.ai lets say if i do findunique what is the return type i get and how do i parse it to json
22 replies
CDCloudflare Developers
Created by Mohan on 5/16/2024 in #workers-help
Not binding env variables
actually yeh i am not using local flag. its remote
13 replies
CDCloudflare Developers
Created by Mohan on 5/16/2024 in #workers-help
Not binding env variables
but it should till show the value right?
13 replies
CDCloudflare Developers
Created by Mohan on 5/16/2024 in #workers-help
Not binding env variables
nooooo
13 replies
CDCloudflare Developers
Created by Mohan on 5/16/2024 in #workers-help
Not binding env variables
local mode
13 replies
CDCloudflare Developers
Created by Mohan on 5/16/2024 in #workers-help
Not binding env variables
also it shows me that the binding is present but i am not able to use it in env wrangler.toml changed... Your worker has access to the following bindings: - KV Namespaces: - KV: c58b6202814f4224acea97627d0c18aa - Queues: - MY_QUEUE: batch-vector-queue - Vectorize Indexes: - VECTORIZE_INDEX: supermem-vector-1 - Browser: - Name: MYBROWSER - AI: - Name: AI
13 replies
CDCloudflare Developers
Created by Mohan on 5/16/2024 in #workers-help
Not binding env variables
Also thank you for that very quick reply
13 replies
CDCloudflare Developers
Created by Mohan on 5/16/2024 in #workers-help
Not binding env variables
name = "cf-ai-backend"
main = "src/index.ts"
compatibility_date = "2024-02-23"
compatibility_flags = ['nodejs_compat']

[[vectorize]]
binding = "VECTORIZE_INDEX"
index_name = "supermem-vector-1"

[ai]
binding = "AI"

[[queues.producers]]
queue = "batch-vector-queue"
binding = "MY_QUEUE"

[[queues.consumers]]
queue = "batch-vector-queue"

[[kv_namespaces]]
binding = "KV"
id = "37a90353da63401e84e20e71165531d0"
preview_id = "c58b6202814f4224acea97627d0c18aa"

[browser]
binding = "MYBROWSER"

[placement]
mode = "smart"
name = "cf-ai-backend"
main = "src/index.ts"
compatibility_date = "2024-02-23"
compatibility_flags = ['nodejs_compat']

[[vectorize]]
binding = "VECTORIZE_INDEX"
index_name = "supermem-vector-1"

[ai]
binding = "AI"

[[queues.producers]]
queue = "batch-vector-queue"
binding = "MY_QUEUE"

[[queues.consumers]]
queue = "batch-vector-queue"

[[kv_namespaces]]
binding = "KV"
id = "37a90353da63401e84e20e71165531d0"
preview_id = "c58b6202814f4224acea97627d0c18aa"

[browser]
binding = "MYBROWSER"

[placement]
mode = "smart"
13 replies
WWasp-lang
Created by Mohan on 4/27/2024 in #đŸ™‹questions
signup
@sodic thanks for reminding. Will post the solutions tomorrow
27 replies
WWasp-lang
Created by Mohan on 4/29/2024 in #đŸ™‹questions
Auth
Thanks, @sodic . I was able to figure it out. I'm thinking of writing about how I did it this weekend. I'll cross-check this thread, and if I did anything more or different, I'll write about it there
24 replies