LLM-Pen is a web-based application built with Vue.js and Vite that allows users to chat with either OpenAI's language models or a locally hosted model via Ollama. The site is deployed on GitHub Pages and operates entirely in the browser, without requiring a backend server. It can also be cloned and run locally for development or offline use.
- OpenAI Model: Chat with an OpenAI-based language model directly from the web interface.
- Local Model (Ollama): Switch to a local Ollama-hosted model for offline usage.
- Vue.js: The application is built using Vue.js, offering a responsive and modern UI.
- Vite: Vite is used for fast development and bundling.
- No Backend Required: The project is deployed on GitHub Pages, making it easy to use directly from the browser without a backend.
You can access the live version of the site here:
LLM-Pen Live Demo
To run the project locally:
-
Clone the repository:
git clone https://github.com/danmoreng/llm-pen.git
-
Navigate to the project directory:
cd llm-pen
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the local development server link provided by Vite (usually
http://localhost:5173/
).
To build the project for production, use:
npm run build
- OpenAI Model: Interact with an OpenAI language model via the browser.
- Local Model (Ollama): Run the model locally if you have Ollama installed and configured.
- OpenAI API Key: If you choose to use the OpenAI model, you will need to provide your own OpenAI API key. This is not provided by the application.
- Ollama Configuration: If you're using the application with the Ollama model from the live GitHub Pages version, ensure that Ollama is configured to allow CORS (Cross-Origin Resource Sharing) to enable proper communication between the browser and your local Ollama instance.
-
Please implement a simple platform jump game, where a character has to move from left to right, collect coins and reach the goal. Use basic shapes for character, coins and game level design.
-
Can you add some platforms where I can jump on? One coin is not reachable.
https://codepen.io/danmoreng/pen/MWNeGYR
This project is licensed under the MIT License. See the LICENSE file for more information.
Contributions are welcome! Feel free to submit a pull request or open an issue for any bugs, suggestions, or feature requests.
For questions or feedback, please open an issue on the GitHub repository.