Welcome to the GitHub Models Web Application, a sophisticated web-based interface designed to facilitate seamless communication with a variety of models available on GitHub Models. Built using Next.js, this application provides a user-friendly platform for interacting with AI models through a web browser.
- Model Selection: Users can choose from all available models on GitHub Models, offering a wide range of capabilities and functionalities.
- Custom Prompts: The application supports the creation of custom prompts for engaging with the models. Please note that not all models may support this feature.
- Conversation History: With no reliance on a database, the application can maintain a conversation history of up to 30 messages, allowing for multi-turn dialogues without losing context.
To get started with the GitHub Models Web Application, follow these simple steps:
- Environment Setup: Ensure that you have a
.env.localfile in your project directory with the necessary environment variables set. - Configuration: Configure the
GITHUB_TOKENandAZURE_ENDPOINTvariables in your.env.localfile to authenticate and connect with the GitHub Models API.
- Node.js (latest LTS version recommended)
- npm or Yarn package manager
- A GitHub account with access to GitHub Models
- An Azure endpoint for model interaction (if applicable)
-
Clone the repository:
git clone https://github.com/Viskeyy/github-models-chatbot.git
-
Navigate to the project directory:
cd github-models-chatbot -
Install the dependencies:
npm install # or yarn -
Create a
.env.localfile in the root of the project directory and add yourGITHUB_TOKENandAZURE_ENDPOINT:GITHUB_TOKEN=your_github_token_here AZURE_ENDPOINT=your_azure_endpoint_here -
Start the development server:
npm run dev # or yarn dev
Once the application is running, you can access it through your web browser at http://localhost:3000. Here's how to use the application:
- Select a Model: Choose the model you wish to interact with from the dropdown menu.
- Enter a Prompt: Type your custom prompt in the input field.
- Send: Click the "Send" button to submit your prompt to the model.
- Receive a Response: The model will process your prompt and return a response, which will be displayed in the conversation history.
The GitHub Models Web Application is designed to be easily customizable. You can modify the UI, add new features, or integrate additional models by editing the source code.
We welcome contributions to the project. If you have an idea for a new feature, or if you find a bug, please submit an issue or create a pull request.
This project is open source and available under the MIT License.
For any questions or issues, please reach out to us at support@githubmodels.com.
We would like to thank the GitHub Models community for their continuous support and contributions to the AI model ecosystem.
Enjoy your AI-driven conversations with the GitHub Models Web Application!