Skip to content

Commit

Permalink
Merge upstream/main into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lopins committed Oct 6, 2024
2 parents 7f675af + 2fce74b commit e7efb6b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 6 deletions.
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,56 @@ By simplifying the structure and key functions, developers can quickly set up an

## How to use

### Option 1: Goto demo [AIQL](https://chat.aiql.com/)
#### Option 1: Goto demo [AIQL](https://chat.aiql.com/)
> The demo will use `Qwen 2.5` by default
### Option 2: Download [Index](./index.html) and open it locally (recommended)
#### Option 2: Download [Index](./index.html) and open it locally (recommended)

<<<<<<< HEAD
### Option 3: Deploy your own Chatbot by [Docker](https://hub.docker.com/repository/docker/aiql/chat-ui/tags?page=1&ordering=last_updated)

=======
#### Option 3: Deploy your own Chatbot by [Docker](https://hub.docker.com/repository/docker/aiql/chat-ui/tags?page=1&ordering=last_updated)
>>>>>>> upstream/main
```shell
docker run -p 8080:8080 -d aiql/chat-ui
```

<<<<<<< HEAD
### Option 4: fork this repo and link it to [Cloudflare pages](https://developers.cloudflare.com/pages)

=======
#### Option 4: fork this repo and link it to [Cloudflare pages](https://developers.cloudflare.com/pages)
>>>>>>> upstream/main
- demo https://www2.aiql.com

## How to config

By default, the Chatbot will use API format as OpenAI Chatgpt. You can insert your OpenAI `API Key` and use it directly.
By default, the Chatbot will use API format as OpenAI ChatGPT.

Or change the `Endpoint` in configuration to use API from other vendors
You can insert your OpenAI `API Key` and change the `Endpoint` in configuration to use API from any other vendors

> You can download the config template from [example](./example/config) and use it for quick configuration
You can also download the config template from [example](./example/config) and insert your `API Key`, then use it for quick configuration

## Trouble Shooting

If you're experiencing issues opening the page and a simple refresh isn't resolving the issue, please take the following steps:

<<<<<<< HEAD
1. Right-click your browser page and go to the `Network` section.
=======
### Reset Interface Configuration
1. Click `Refresh` icon on the upper right of `Interface Configuration`

### Reset All Configuration
1. Click hidden botton on the right side of the index page
2. Click `Reset All Config` icon

### Reset Cache
1. Right-click your browser page and go to the `Network` section.
2. Right-click on section table and clear your browser's cache and cookies to ensure you have the latest version of the page.
3. Additionally, inspect the browser's Network section to see which resources are failing to load due to your location. This will provide you with more specific information about the issue.
>>>>>>> upstream/main
2. Right-click on section table and clear your browser's cache and cookies to ensure you have the latest version of the page.

Expand Down
16 changes: 16 additions & 0 deletions example/config/nvidiaNIM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"chatbotStore": {
"apiKey": "",
"url": "https://nvidia.aiql.com",
"path": "/v1/chat/completions",
"model": "meta/llama-3.1-405b-instruct",
"max_tokens_value": ""
},
"defaultChoiceStore": {
"model": [
"meta/llama-3.1-405b-instruct",
"meta/llama-3.1-70b-instruct",
"mistralai/mixtral-8x22b-instruct-v0.1"
]
}
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
}
));

if (result) {
if (result[0]?.content) {
return [...result, ...conversation]
} else {
return [...conversation]
Expand Down

0 comments on commit e7efb6b

Please sign in to comment.