Setting Up AI Providers

Chapter 1:

Step 1 - Configure Your AI Provider

  1. Set up your account with OpenAI or another AI provider.

  2. Obtain your API Key and add it to your .env file.

OPENAI_API_KEY=your-openai-api-key
CHAT_BOT_MODEL=gpt-4

Step 2 - Wrapping Your App with the AI Provider

In SSK-Pro, the @pro/RootLayout component handles wrapping your entire app in the AI provider. This ensures that AI services, such as chatbots or dynamic content generation, are available throughout your application without additional manual setup.

Simply configure the environment variables, and the AI provider will be globally accessible through the @pro/RootLayout component.

By following these steps, you will have your AI provider integrated into your application. For more information on additional configurations and AI provider support, visit the SSK-Pro documentation.

Last updated