Co-authored-by: chen, suyue <suyue.chen@intel.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user