Skip to content

Commit 73879d3

Browse files
fix faq ui bug (#1118)
Signed-off-by: Xinyao Wang <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7c9ed04 commit 73879d3

File tree

9 files changed

+11
-5
lines changed

9 files changed

+11
-5
lines changed

FaqGen/docker_compose/intel/cpu/xeon/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export TGI_LLM_ENDPOINT="http://${your_ip}:8008"
7979
export HUGGINGFACEHUB_API_TOKEN=${your_hf_api_token}
8080
export MEGA_SERVICE_HOST_IP=${host_ip}
8181
export LLM_SERVICE_HOST_IP=${host_ip}
82+
export LLM_SERVICE_PORT=9000
8283
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/faqgen"
8384
```
8485

FaqGen/docker_compose/intel/cpu/xeon/compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ services:
4646
- http_proxy=${http_proxy}
4747
- MEGA_SERVICE_HOST_IP=${MEGA_SERVICE_HOST_IP}
4848
- LLM_SERVICE_HOST_IP=${LLM_SERVICE_HOST_IP}
49+
- LLM_SERVICE_PORT=${LLM_SERVICE_PORT}
4950
ipc: host
5051
restart: always
5152
faqgen-xeon-ui-server:
@@ -59,7 +60,7 @@ services:
5960
- no_proxy=${no_proxy}
6061
- https_proxy=${https_proxy}
6162
- http_proxy=${http_proxy}
62-
- DOC_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
63+
- FAQ_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
6364
ipc: host
6465
restart: always
6566
networks:

FaqGen/docker_compose/intel/hpu/gaudi/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export TGI_LLM_ENDPOINT="http://${your_ip}:8008"
8080
export HUGGINGFACEHUB_API_TOKEN=${your_hf_api_token}
8181
export MEGA_SERVICE_HOST_IP=${host_ip}
8282
export LLM_SERVICE_HOST_IP=${host_ip}
83+
export LLM_SERVICE_PORT=9000
8384
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/faqgen"
8485
```
8586

FaqGen/docker_compose/intel/hpu/gaudi/compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ services:
5656
- http_proxy=${http_proxy}
5757
- MEGA_SERVICE_HOST_IP=${MEGA_SERVICE_HOST_IP}
5858
- LLM_SERVICE_HOST_IP=${LLM_SERVICE_HOST_IP}
59+
- LLM_SERVICE_PORT=${LLM_SERVICE_PORT}
5960
ipc: host
6061
restart: always
6162
faqgen-gaudi-ui-server:
@@ -69,7 +70,7 @@ services:
6970
- no_proxy=${no_proxy}
7071
- https_proxy=${https_proxy}
7172
- http_proxy=${http_proxy}
72-
- DOC_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
73+
- FAQ_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
7374
ipc: host
7475
restart: always
7576

FaqGen/kubernetes/intel/cpu/xeon/manifest/faqgen_react_ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ spec:
264264
containers:
265265
- name: faqgen-react-ui
266266
env:
267-
- name: DOC_BASE_URL
267+
- name: FAQ_BASE_URL
268268
value: "http://faqgen:8888/v1/faqgen"
269269
- name: http_proxy
270270
value:

FaqGen/kubernetes/intel/cpu/xeon/manifest/faqgen_ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
containers:
2323
- name: faq-mega-ui-deploy
2424
env:
25-
- name: DOC_BASE_URL
25+
- name: FAQ_BASE_URL
2626
value: http://{insert_your_ip_here}:7779/v1/faqgen
2727
image: opea/faqgen-ui:latest
2828
imagePullPolicy: IfNotPresent

FaqGen/kubernetes/intel/hpu/gaudi/manifest/faqgen_ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
containers:
2323
- name: faq-mega-ui-deploy
2424
env:
25-
- name: DOC_BASE_URL
25+
- name: FAQ_BASE_URL
2626
value: http://{insert_your_ip_here}:7779/v1/faqgen
2727
image: opea/faqgen-ui:latest
2828
imagePullPolicy: IfNotPresent

FaqGen/tests/test_compose_on_gaudi.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function start_services() {
3434
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
3535
export MEGA_SERVICE_HOST_IP=${ip_address}
3636
export LLM_SERVICE_HOST_IP=${ip_address}
37+
export LLM_SERVICE_PORT=9000
3738
export BACKEND_SERVICE_ENDPOINT="http://${ip_address}:8888/v1/faqgen"
3839

3940
sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env

FaqGen/tests/test_compose_on_xeon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function start_services() {
3434
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
3535
export MEGA_SERVICE_HOST_IP=${ip_address}
3636
export LLM_SERVICE_HOST_IP=${ip_address}
37+
export LLM_SERVICE_PORT=9000
3738
export BACKEND_SERVICE_ENDPOINT="http://${ip_address}:8888/v1/faqgen"
3839

3940
sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env

0 commit comments

Comments
 (0)