Co-authored-by: chen, suyue <suyue.chen@intel.com>
This commit is contained in:
huiyan2021
2024-06-26 23:49:42 +08:00
committed by GitHub
parent 81ceb26c3f
commit 7f19e8b546
9 changed files with 24 additions and 24 deletions

View File

@@ -24,7 +24,7 @@ app.add_middleware(
)
TGI_ENDPOINT = os.getenv("TGI_ENDPOINT", "http://localhost:8080")
SERVICE_PORT = os.getenv("SERVER_PORT", 8000)
SERVICE_PORT = int(os.getenv("SERVER_PORT", 8000))
class CodeTranslationAPIRouter(APIRouter):

View File

@@ -7,9 +7,9 @@ import os
from comps import CodeTransGateway, MicroService, ServiceOrchestrator
MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0")
MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 7777)
MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 7777))
LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0")
LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000)
LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000))
class CodeTransService: