https://github.com/lgrammel/modelfusion-terminal-app-starter
Starter template for building ModelFusion terminal apps with TypeScript.
https://github.com/lgrammel/modelfusion-terminal-app-starter
ai llm modelfusion openai
Last synced: 8 months ago
JSON representation
Starter template for building ModelFusion terminal apps with TypeScript.
- Host: GitHub
- URL: https://github.com/lgrammel/modelfusion-terminal-app-starter
- Owner: lgrammel
- License: mit
- Created: 2023-09-02T07:24:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T23:37:59.000Z (over 2 years ago)
- Last Synced: 2025-05-07T18:08:26.152Z (about 1 year ago)
- Topics: ai, llm, modelfusion, openai
- Language: TypeScript
- Homepage:
- Size: 39.1 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ModelFusion Terminal App Starter
The ModelFusion Terminal App Starter is a template for creating your own AI terminal app. It is based on the [ModelFusion](https://modelfusion.dev) library and uses OpenAI's `gpt-3.5-turbo-instruct` model to generate text. Follow the steps below to set up your environment.
## Prerequisites
- [Node.js](https://nodejs.org/en/download/) version 18 or above is required.
- [OpenAI API](https://platform.openai.com/overview) key.
## Get the Code
Clone this repository to your local machine.
```sh
git clone https://github.com/lgrammel/modelfusion-terminal-app-starter.git
```
## Dependencies
Navigate to the project directory and install required packages.
```sh
cd modelfusion-terminal-app-starter
npm install
```
## API Key Configuration
Create a .env file in the project root.
Add your OpenAI API key like so:
```sh
OPENAI_API_KEY="your-api-key"
```
## Launch the App
Run the following command to start the app:
```sh
npm start
```
That's it! You can now modify the starter to create your own AI terminal app.