Configuring AI

    1. Update .env.local

    .env.local

    OPENAI_API_KEY= # open ai api key
    
    1. Navigate to /src/utils/config.ts
    2. Change these configs as you wish

    /src/utils/config.ts

    const config = {
      // OpenAI-related configuration for AI functionality.
      openai: {
        maxCompletionTokens: 800, // Maximum number of tokens in the AI's response.
        temperature: 0.5, // Controls the randomness of the AI's output (0 = deterministic, 1 = very random).
        allowedRoles: ["user", "assistant"] as const, // Roles that can interact with the AI.
        allowedModels: ["gpt-3.5-turbo", "gpt-4o-mini", "gpt-4o", "gpt-4"] as const, // Models allowed for AI generation.
      },
    };