Jaaneek
Jaaneek
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Myroslav.Toloshnyi on 4/19/2024 in #questions
Custom Sub-Domains on Vercel + Namecheap
There are 2 options: 1. Rewrites in nextjs configs 2. Middleware.ts file I recommend middleware file, look for multi tenancy app nextjs, you will need to adjust it to your case I have something pretty similar with theo.feedbackvote.com
Jaaneek.feedbackvote.com Etc
8 replies
TTCTheo's Typesafe Cult
Created by Myroslav.Toloshnyi on 4/19/2024 in #questions
Custom Sub-Domains on Vercel + Namecheap
Seems good, what is not working? I have the exact same setup in few projects with multi tenancy and it works
8 replies
TTCTheo's Typesafe Cult
Created by Fade on 4/19/2024 in #questions
NextJS wants me use 'use client' on its complied files?
Wrap the component in another component and put „use client” on top. Seems like the creators of some package you are using didn’t use „use client” on top, it’s pretty common
4 replies
TTCTheo's Typesafe Cult
Created by jackmcbride_98 on 10/4/2023 in #questions
How do I revalidatePath from a trpc router?
Where did you get CreateNextContextOptions from?
11 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Im sorry if I was, it was not my intention
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
I literally said to DM me because I wanted to avoid spam, I believe I was not hostile at all
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Can you give me any tips/direction? Samples?
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Here is snippet from portfolio-quiz.com. It takes any resume and parses it pretty well https://pastebin.com/nCpLAC3L I have quite few users and every portfolio looks well
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Yes, so my question is how to make it work better, how should I approach it?
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Yes, I will show you the code. One moment
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Jus to let you know: I’m already doing this with portfolio-quiz.com where I parse resumes into JSON, but the zod schema there is much simpler so gpt has no troubles doing it
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Yes, my zod schema is very large so I have trouble “forcing” gpt to follow it correctly
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Correct, I want to also scrape data from App Store, google store, other gaming platforms
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
1. I’m fetching the data from steam API 2. Im using this json from steam API as input to GPT 3. I Ask gpt to use data from steam API JSON and put it into JSON that is defined by my zod schema …. I want it to be generic so I can also fetch the data from other places and always have it in my zod defined JSON format
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
I’m using this one https://www.npmjs.com/package/openai @Strike
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
I’m using OpenAI npm package but I have trouble incorporating the zod schema into it, even with the examples @Strike
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
Sorry @iDarkLightning I think you are not helping here, you don’t understand my question. If you are curious about this topic feel free to DM me but let’s not spam this topic so others will be more willingly to give answers
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
I’m already doing it as well but the gpt is hallucinating a lot for me and Im looking for some good practices/tips/snippets
50 replies
TTCTheo's Typesafe Cult
Created by Jaaneek on 1/16/2024 in #questions
Parsing JSON Into zod schema using OPENAI GPT
I guess you don’t understand how does gpt work, I want to put literally any string on earth and I want the gpt to output JSON from it. It’s pretty normal use case. For example v0.dev does it but without zod. Here is example input https://store.steampowered.com/api/appdetails?appids=1702010
50 replies