mirror of
https://github.com/wahyd4/SAI2.git
synced 2026-08-09 05:06:05 +10:00
@@ -37,6 +37,31 @@ You have three options for Google Search: you can use the [SearchApi Google Sear
|
||||
```
|
||||
docker run -d --name search4all -e OPENAI_API_KEY=sk-XXX -e OPENAI_BASE_URL=https://api.openai.com/v1 -e LLM_MODEL=gpt-3.5-turbo-0125 -e RELATED_QUESTIONS=1 -e SEARCH1API_KEY=XXX -e BACKEND=SEARCH1API -p 8800:8800 docker.io/fatwang2/search4all
|
||||
```
|
||||
|
||||
### Docker-Compose
|
||||
[Hub address](https://hub.docker.com/r/fatwang2/search4all)
|
||||
|
||||
```yml
|
||||
version: '3.4'
|
||||
|
||||
services:
|
||||
search4all:
|
||||
image: docker.io/fatwang2/search4all
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8800:8800
|
||||
environment:
|
||||
OPENAI_API_KEY: sk-xxx
|
||||
OPENAI_BASE_URL: https://api.openai.com/v1
|
||||
LLM_MODEL: gpt-3.5-turbo-0125
|
||||
RELATED_QUESTIONS: 1
|
||||
NODE_ENV: production
|
||||
# Change your search provider name here, if use another different provider
|
||||
BACKEND: SEARCH1API
|
||||
# Set your search key from your provider here
|
||||
SEARCH1API_KEY: xxxx
|
||||
```
|
||||
|
||||
### Manual
|
||||
1. install the requirements.txt
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user