An open API service indexing awesome lists of open source software.

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.

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}`).