Hit external APIs ...

AAlii3/9/2023
I'm new to tRPC, I need to hit an external API (OpenAI) directly from the client-side. Can I still use tRPC for that?
If not do I have to wrap my app in Nextjs with React-Query wrapper?
Nnlucas3/9/2023
TRPC would be an intermediate layer which can hide things like API keys for external services
Nnlucas3/9/2023
It’s an API in its own right, so if you don’t need that you’d be best off using react-query with the other service directly
AAlii3/9/2023
actually, I need both. I need to perform requests to internal & external APIs
UUUnknown User3/9/2023
4 Messages Not Public
Sign In & Join Server To View
AAlii3/10/2023
From the first look, I saw you are missing the organization key in the configuration.
AAlii3/10/2023
the organization key can be skipped if you hit their API from the client-side
UUUnknown User3/10/2023
Message Not Public
Sign In & Join Server To View