Summary

  • Full-stack Next.js 16 application with cache components, server actions, and modern React 19 patterns
  • Multi-model AI integration using OpenAI’s logprobs API and Groq’s Llama 3.1 for hybrid AI functionality
  • Real-time game state management with probability tracking and optimal choice analysis
  • Responsive chat-style UI with loading states, error handling, and smooth user interactions

“Are You a Good Generative AI Model” is a small web application that gamifies the language model text generation process, challenging users to roleplay as an AI assistant by constructing responses one word at a time. The aim of this game is to provide an engaging educational experience about how AI systems generate text.

The technical implementation leverages OpenAI’s logprobs API to extract real token probability distributions from GPT-4o-mini, creating an authentic simulation of LLM decision-making. To make this game challenging, the application implements a sophisticated multi-model AI architecture where three different language models provide word suggestions, but only one is answering the actual question while the others serve as distractors.

Built with Next.js 16 and TypeScript, the project demonstrates proficiency in cache component, server actions, API integration with multiple AI providers (OpenAI and Groq), and creating responsive, chat-style user interfaces with Tailwind CSS. The application features real-time word generation, state management for game sessions, probability tracking to measure optimal vs. suboptimal choices, and AI-powered scoring that evaluates response coherence.

More PROJECTS