https://github.com/longern/flareagent
Another ChatGPT front-end. Focus on tool calls and workflow management.
https://github.com/longern/flareagent
chatgpt pyodide react typescript
Last synced: 3 months ago
JSON representation
Another ChatGPT front-end. Focus on tool calls and workflow management.
- Host: GitHub
- URL: https://github.com/longern/flareagent
- Owner: longern
- License: mit
- Created: 2023-12-27T09:51:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-23T03:21:14.000Z (about 1 year ago)
- Last Synced: 2024-05-23T03:26:35.489Z (about 1 year ago)
- Topics: chatgpt, pyodide, react, typescript
- Language: TypeScript
- Homepage: https://agent.longern.com
- Size: 603 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flare Agent
Another ChatGPT front-end. Focus on tool calls and workflow management.
## Features
- [x] Chat with GPT-3.5 and GPT-4
- [x] Image input (take photo or upload)
- [x] Markdown support
- [x] OpenAI format LaTeX support
- [x] Code highlighting
- [x] Unlimited local chat history storage (with OPFS)
- [x] Tool calls
- [x] Run python code in browser (with pyodide)
- [x] DuckDuckGo search (need Cloudflare Workers)
- [x] Browser (need Cloudflare Workers)
- [x] Dalle-3 image generation
- [x] Memory management
- [x] Import custom tools in OpenAPI format
- [x] Share chat history as image
- [x] Proxy OpenAI requests
- [x] Workflow management## Usage
### Basic
1. Visit website in repository description.
2. Set your OpenAI API key in the settings page.### Python reference
Chat messages can be accessed by `MESSAGES` environment variable.
Any modification to `os.environ` will be preserved between messages.An example of extracting the last message content:
```py
import os
import json
messages = json.loads(os.environ["MESSAGES"])
os.environ["CONTENT"] = messages[-1].content
```Environment variables can be accessed in the system prompt (e.g. `{CONTENT}`).