Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tldraw/tldraw-llm-starter
A starter for working with tldraw and large language models.
https://github.com/tldraw/tldraw-llm-starter
Last synced: 3 days ago
JSON representation
A starter for working with tldraw and large language models.
- Host: GitHub
- URL: https://github.com/tldraw/tldraw-llm-starter
- Owner: tldraw
- License: gpl-3.0
- Created: 2023-12-12T13:00:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-14T10:38:20.000Z (7 months ago)
- Last Synced: 2024-06-14T11:57:57.225Z (7 months ago)
- Language: TypeScript
- Size: 381 KB
- Stars: 125
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome_ai_agents - Tldraw-Llm-Starter - A starter for working with tldraw and large language models. (Building / LLM Models)
- awesome_ai_agents - Tldraw-Llm-Starter - A starter for working with tldraw and large language models. (Building / LLM Models)
README
This repository collects demos that show how you might use [tldraw](https://github.com/tldraw/tldraw) together with an LLM like GPT-4. It is very much a work in progress, please use it as inspiration and experimentation.
PRs welcome for new demos, prompts, strategies and models.
# Installation
Run `npm install` to install dependencies.
# Usage
1. Create an OpenAI API key on the [platform.openai.com](platform.openai.com) website.
2. Create an Assistant on the [platform.openai.com](platform.openai.com) website.
3. Create a second Assistant on the [platform.openai.com](platform.openai.com) website.
4. Create `.env` file at the root of this repo with both the key and the assistant's id.```
OPENAI_API_KEY="sk-sk-etcetcetc"
OPENAI_ASSISTANT_ID="asst_etcetcetc"
OPENAI_FUNCTIONS_ASSISTANT_ID="asst_etcetcetc"
```Run `npm run dev` to start the server.
See notes below on the different demos.