From 77bcc4d763069b7c5bc26c8b6bb2dec7dcd3b6d6 Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Wed, 12 Jun 2024 18:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/chatchat-server/chatchat/configs/_server_config.py | 5 +++++ libs/chatchat-server/pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/chatchat-server/chatchat/configs/_server_config.py b/libs/chatchat-server/chatchat/configs/_server_config.py index 709e5030..4c30ec07 100644 --- a/libs/chatchat-server/chatchat/configs/_server_config.py +++ b/libs/chatchat-server/chatchat/configs/_server_config.py @@ -52,6 +52,9 @@ class ConfigServerFactory(core_config.ConfigFactory[ConfigServer]): self.DEFAULT_BIND_HOST = "127.0.0.1" if sys.platform != "win32" else "127.0.0.1" self.WEBUI_SERVER_PORT = 8501 self.API_SERVER_PORT = 7861 + self.__init_server() + + def __init_server(self): # webui.py server self.WEBUI_SERVER = { "host": self.DEFAULT_BIND_HOST, @@ -75,9 +78,11 @@ class ConfigServerFactory(core_config.ConfigFactory[ConfigServer]): def webui_server_port(self, webui_server_port: int): self.WEBUI_SERVER_PORT = webui_server_port + self.__init_server() def api_server_port(self, api_server_port: int): self.API_SERVER_PORT = api_server_port + self.__init_server() def get_config(self) -> ConfigServer: config = ConfigServer() diff --git a/libs/chatchat-server/pyproject.toml b/libs/chatchat-server/pyproject.toml index b52e9bf5..f1330398 100644 --- a/libs/chatchat-server/pyproject.toml +++ b/libs/chatchat-server/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langchain-chatchat" -version = "0.3.0.20240612" +version = "0.3.0.20240612.1" description = "" authors = ["chatchat"] readme = "README.md"