Skip to content
Prev Previous commit
Next Next commit
update
  • Loading branch information
infwinston committed Jan 10, 2024
commit b60f15e86e8a489a9af7bbe5e40279e209229e60
2 changes: 1 addition & 1 deletion fastchat/serve/gradio_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def get_conv_log_filename():


def get_model_list(controller_url, register_api_endpoint_file):
global api_endpoint_info
if controller_url:
ret = requests.post(controller_url + "/refresh_all_workers")
assert ret.status_code == 200
Expand All @@ -137,7 +138,6 @@ def get_model_list(controller_url, register_api_endpoint_file):

# Add API providers
if register_api_endpoint_file:
global api_endpoint_info
api_endpoint_info = json.load(open(register_api_endpoint_file))
models += list(api_endpoint_info.keys())

Expand Down