Welcome to xAI Fox! This guide will help you set up and modify the project with ease.
You can check the live project at xAI Fox Live.
Grok is a family of Large Language Models (LLMs) developed by xAI.
Inspired by the Hitchhiker's Guide to the Galaxy and JARVIS from Iron Man, Grok is designed to answer almost any question with a touch of wit and humor, while also providing helpful and insightful responses. Grok utilizes next-token prediction model weights (models that predict the most likely word or symbol to follow a given text sequence) to know how to perform certain tasks.
Depending on the model specifications, a user can interact with a Grok model to find answers to questions, interpret images, and generate images.
xAI offers an API interface for developers to programmatically interact with Grok.
-
Clone the Repository:
git clone https://github.com/gazzette-ai/fox.git cd fox
-
Install Dependencies:
npm install
-
Configure Environment Variables: Create a
.env.production
file in the root directory and add your Vercel Analytics ID:REACT_APP_VERCEL_ANALYTICS_ID={your-vercel-analytics-id}
-
Start the Development Server:
npm start
-
API Configuration: Adjust the API settings in
/src/vitals.js
. -
xAI's API: Update xAI's API settings in
/src/api.js
.
-
Sign Up for xAI: Visit the xAI website and create an account.
-
Generate an API Key: After logging in, go to the API section in your account settings and generate a new API key.
-
Add the API Key to Environment Variables: Add the generated API key to your
.env.production
file:REACT_APP_XAI_API_KEY={your-xai-api-key}
For more information, visit the xAI Docs.
Accessing Your xAI API Usage Data:
-
Log in to the xAI Console:
- Navigate to the xAI Console and sign in with your credentials.
-
Navigate to the Usage Section:
- Once logged in, go to the 'Usage' section to view your API usage statistics.
-
Specify the Date Range:
- Use the date filters to select the desired time frame for your usage data.
-
Exporting Data:
- Currently, xAI does not provide a direct export feature for usage data. However, you can manually copy the displayed data into a CSV file for further analysis.
Automated Data Extraction:
For a more automated approach, you can use tools designed for exporting API usage data. For instance, the 'OpenAI API Usage Data Export' Chrome extension allows users to export their API usage data to a CSV file, facilitating further analysis in Excel. (chromewebstore.google.com)
Steps to Use the Chrome Extension:
-
Install the Extension:
- Add the 'OpenAI API Usage Data Export' extension to your Chrome browser from the Chrome Web Store.
-
Log in to the xAI Console:
- Navigate to the xAI Console and sign in.
-
Open the Extension:
- Click on the extension icon in your browser.
-
Select Date Range and Export:
- Choose the desired time range and export the data as a CSV file.
Please note that while this extension is primarily designed for OpenAI, it may be compatible with xAI's console due to similar interfaces. Ensure you comply with xAI's terms of service when using third-party tools.
By following these steps, you can effectively extract and analyze your xAI API usage data.
This project uses the grok-beta
model for generating responses. You can configure the model settings in /src/App.js
.
You can deploy this project using the following platforms:
- Vercel: Vercel Deployment
- Netlify: Netlify Deployment
- Heroku: Heroku Deployment
-
Performance Reporting: Customize performance reporting in
/src/reportWebVitals.js
. -
Main Application: The main application code is located in
/src/index.js
. -
Testing: Set up testing in
/src/setupTests.js
. -
Manifest: Modify the web app manifest in
/public/manifest.json
. -
Robots: Configure
robots.txt
in/public/robots.txt
. -
License: This project is licensed under the MIT License. See the LICENSE file for details.
Enjoy working with xAI Fox!