How to create new tRPC api route calling external api
Hi I have this app where I want to add a new prompt api route in
The code I'm trying to run:
after the code above in the
This gives me a 429 tRPC error when called and I unfortunately have no idea and have been everywhere with the documentation available, any of you friendly developers that have an idea?
server/api/routers/prompt.ts of the generated T3 app with all modules selected on install.The code I'm trying to run:
after the code above in the
prompt.ts file created I attach it to the root.ts of the routers - just like with the example.ts file and proceed to call it in my client like so:This gives me a 429 tRPC error when called and I unfortunately have no idea and have been everywhere with the documentation available, any of you friendly developers that have an idea?
