From 61b304a4689684d217bf0a0d51053737da46261a Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 14 Nov 2023 23:56:18 -0800 Subject: [PATCH] When default_mode_endpoint has a value, it needs to become model_endpoint. --- memgpt/cli/cli_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memgpt/cli/cli_config.py b/memgpt/cli/cli_config.py index 2433efb1a4..cd8d08118d 100644 --- a/memgpt/cli/cli_config.py +++ b/memgpt/cli/cli_config.py @@ -89,6 +89,8 @@ def configure_llm_endpoint(config: MemGPTConfig): if "http://" not in model_endpoint and "https://" not in model_endpoint: typer.secho(f"Endpoint must be a valid address", fg=typer.colors.YELLOW) model_endpoint = None + else: + model_endpoint = default_model_endpoint assert model_endpoint, f"Environment variable OPENAI_API_BASE must be set." return model_endpoint_type, model_endpoint