From 25db74b19cfa5f2246d095e3fdb39faffa0733b1 Mon Sep 17 00:00:00 2001 From: cuauty Date: Wed, 11 Dec 2024 19:07:18 +0800 Subject: [PATCH] update default endpoint --- fastchat/serve/api_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastchat/serve/api_provider.py b/fastchat/serve/api_provider.py index 5cafb271a..f66452182 100644 --- a/fastchat/serve/api_provider.py +++ b/fastchat/serve/api_provider.py @@ -1289,7 +1289,7 @@ def bailing_api_stream_iter( api_key=None, generation_args=None, ): - url = api_base if api_base else "https://bailingchat.alipay.com/chat/arena" + url = api_base if api_base else "https://bailingchat.alipay.com/chat/completions" token = api_key if api_key else os.environ.get("BAILING_API_KEY") if token: headers = {"Authorization": f"Bearer {token}"}