Ollama Next.js is a web application built with Next.js that allows users to interact with Ollama servers. This project provides a user-friendly interface for managing chat sessions, configuring server settings, and customizing the appearance of the application.
To get started with the Ollama Next.js project, follow the instructions below.
-
Clone the repository:
git clone https://github.com/dustinwloring198/ollama-nextjs.git
-
Navigate to the project directory:
cd ollama-nextjs
-
Install the dependencies:
npm install
To run the application in development mode, use the following command:
```bash
npm run dev
```
Open http://localhost:3000 with your browser to see the result.
- User Authentication: Secure login and user management.
- Chat Management: Create, delete, and manage chat sessions.
- Server Configuration: Easily configure and manage Ollama servers.
- Customizable Appearance: Change themes and font sizes to suit your preferences.
- Export Chats: Export chat history for future reference.
The Settings Dialog allows users to manage server configurations, chat history, and appearance settings. Below are the key features of the Settings Dialog:
-
Server Management:
- Add new servers by providing a name, URL, and port.
- Remove existing servers from the list.
- Set a server as active to use for chat sessions.
- Refresh the list of models available for each server.
-
Chat History Management:
- Export all chat history to a JSON file for backup or analysis.
- Delete all chat history with a confirmation prompt.
-
Appearance Settings:
- Choose between different themes: Light, Dark, or System.
- Adjust font size preferences: Small, Medium, or Large.
To access the Settings Dialog, click on the settings icon located in the sidebar. This will open a dialog where you can navigate through different tabs to manage your settings.
Here’s a brief overview of how to add a new server:
- Click on the Add Server button.
- Fill in the Server Name, URL, and Port fields.
- Click Add Server to save the new server configuration.
- Ensure that the server URL and port are unique to avoid conflicts.
- Deleting all chats is irreversible; please use this feature with caution.
We welcome contributions to the Ollama Next.js project! If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch to your forked repository.
- Create a pull request describing your changes.
This project is licensed under the MIT License. See the LICENSE file for more details.
For more information, please refer to the documentation or contact the project maintainers.