2024-01-17 02:25:28 +00:00
# Multi-Chats by OpenAOE
English | [简体中文 ](openaoe_zh_cn.md )
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
## Introduction
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
[OpenAOE ](https://github.com/InternLM/OpenAOE ) is a LLM-Group-Chat Framework, which can chat with multiple LLMs (commercial/open source LLMs) at the same time. OpenAOE provides both backend API and WEB-UI to meet different usage needs.
2024-07-03 12:28:08 +00:00
Currently already supported LLMs: [internlm2_5-7b-chat ](https://huggingface.co/internlm/internlm2_5-7b-chat ), [IntenLM-Chat-7B ](https://huggingface.co/internlm/internlm-chat-7b ), GPT-3.5, GPT-4, Google PaLM, MiniMax, Claude, Spark, etc.
2024-01-17 02:25:28 +00:00
## Quick Run
2024-01-26 09:26:04 +00:00
> \[!TIP\]
2024-01-17 02:25:28 +00:00
> Require python >= 3.9
We provide three different ways to run OpenAOE: `run by pip` , `run by docker` and `run by source code` as well.
2024-01-17 05:07:35 +00:00
### Run by pip
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
#### **Install**
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
```shell
2024-01-17 05:07:35 +00:00
pip install -U openaoe
2024-01-17 02:25:28 +00:00
```
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
#### **Start**
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
```shell
openaoe -f /path/to/your/config-template.yaml
```
### Run by docker
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
#### **Install**
There are two ways to get the OpenAOE docker image by:
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
1. pull the OpenAOE docker image
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
```shell
2024-01-17 11:38:15 +00:00
docker pull opensealion/openaoe:latest
2024-01-17 02:25:28 +00:00
```
2. or build a docker image
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
```shell
git clone https://github.com/internlm/OpenAOE
2024-01-17 11:38:15 +00:00
cd OpenAOE
2024-01-17 02:25:28 +00:00
docker build . -f docker/Dockerfile -t openaoe:latest
```
#### **Start**
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
```shell
2024-01-17 11:38:15 +00:00
docker run -p 10099:10099 -v /path/to/your/config-template.yaml:/app/config.yaml --name OpenAOE opensealion/openaoe:latest
2024-01-17 02:25:28 +00:00
```
### Run by source code
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
#### **Install**
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
1. clone this project
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
```shell
git clone https://github.com/internlm/OpenAOE
```
2024-01-26 09:26:04 +00:00
2. \[_optional_\] build the frontend project when the frontend codes are changed
2024-01-17 02:25:28 +00:00
```shell
2024-01-17 11:38:15 +00:00
cd OpenAOE/openaoe/frontend
2024-01-17 02:25:28 +00:00
npm install
npm run build
```
#### **Start**
2024-01-26 09:26:04 +00:00
2024-01-17 02:25:28 +00:00
```shell
2024-01-17 11:38:15 +00:00
cd OpenAOE
pip install -r openaoe/backend/requirements.txt
python -m openaoe.main -f /path/to/your/config-template.yaml
2024-01-17 02:25:28 +00:00
```
2024-01-26 09:26:04 +00:00
> \[!TIP\]
2024-01-17 11:38:15 +00:00
> `/path/to/your/config-tempalte.yaml` is the configuration file loaded by OpenAOE at startup,
2024-01-17 02:25:28 +00:00
> which contains the relevant configuration information for the LLMs,
> including: API URLs, AKSKs, Tokens, etc.
2024-01-17 11:38:15 +00:00
> A template configuration yaml file can be found in `openaoe/backend/config/config-template.yaml`.