This is a Rails application that provides an interactive chat interface using a generative AI client. The application captures user inputs, processes them, and generates responses with emotional context.
- Chat Interaction: Users can interact with the application through a chat interface.
- Generative AI Integration: The application uses a generative AI client to generate content based on user inputs.
- Emotion Handling: The application supports various emotional types to add emotional context to the generated responses.
- Error Handling: The application includes error handling for scenarios such as missing configuration files and invalid JSON responses.
- Ruby (version 2.7.2 or later)
- Rails (version 6.1 or later)
- Bundler
- Clone the repository:
git clone https://github.com/y1220/mindGuideFE.git cd mindGuideFE
- Install dependencies:
bundle install
- Set up environment variables:
Create a
.env
file in the root directory of your project and add your environment variables. For example:GOOGLE_API_KEY=your_google_api_key_here
- Start the Rails server:
rails server
- Navigate to the chat interface: Go to the chat page in your application.
- Enter your prompt: Type your message or use voice input to interact with the chat interface.
- Receive AI-generated responses: The application will process your input and generate a response with emotional context.