StakeVladDracula pierces all !
Recommended deployment is with Vercel. But you can deploy it anywhere you want.
Just deploy the project and you are ready to go.
for OpenAI SDK just change the baseURL
from https://api.openai.com/v1
to YOUR_DEPLOYED_URL/v1
for example if you deployed the project to https://stake-vlad-dracula.vercel.app
then change the baseURL
to https://stake-vlad-dracula.vercel.app/v1
.
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'YOUR_API_KEY sk-XXXXXX-XXXXXX-XXXXXX-XXXXXX',
// change the baseURL to your deployed URL
baseURL: 'https://stake-vlad-dracula.vercel.app/v1',
});
If you found this Implementation helpful or used it in your Projects, do give it a star. Thanks! 🌟