Skip to content

Commit

Permalink
debug/chat: increase notify error duration to 3000 (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
lroolle authored Mar 11, 2024
1 parent 7001e21 commit fdd211e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
1. Start the docker-compose stack

The backend require some middleware, including PostgreSQL, Redis, and Weaviate, which can be started together using `docker-compose`.

```bash
cd ../docker
docker-compose -f docker-compose.middleware.yaml -p dify up -d
Expand All @@ -15,7 +15,7 @@
3. Generate a `SECRET_KEY` in the `.env` file.

```bash
openssl rand -base64 42
sed -i "/^SECRET_KEY=/c\SECRET_KEY=$(openssl rand -base64 42)" .env
```
3.5 If you use annaconda, create a new environment and activate it
```bash
Expand Down Expand Up @@ -46,7 +46,7 @@
```
pip install -r requirements.txt --upgrade --force-reinstall
```

6. Start backend:
```bash
flask run --host 0.0.0.0 --port=5001 --debug
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/app/configuration/debug/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const Debug: FC<IDebug> = ({

const { notify } = useContext(ToastContext)
const logError = useCallback((message: string) => {
notify({ type: 'error', message })
notify({ type: 'error', message, duration: 3000 })
}, [notify])
const [completionFiles, setCompletionFiles] = useState<VisionFile[]>([])

Expand Down

0 comments on commit fdd211e

Please sign in to comment.