From e11a74eed5468bfd95947431925af8284814b9c7 Mon Sep 17 00:00:00 2001 From: liuhua <10215101452@stu.ecnu.edu.cn> Date: Fri, 27 Sep 2024 12:55:58 +0800 Subject: [PATCH] Update Yichat base_url (#2620) ### What problem does this PR solve? Update Yichat base_url ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn> --- rag/llm/chat_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py index 2d626d1af..ce65f7dd3 100644 --- a/rag/llm/chat_model.py +++ b/rag/llm/chat_model.py @@ -981,9 +981,9 @@ class SILICONFLOWChat(Base): class YiChat(Base): - def __init__(self, key, model_name, base_url="https://api.01.ai/v1"): + def __init__(self, key, model_name, base_url="https://api.lingyiwanwu.com/v1"): if not base_url: - base_url = "https://api.01.ai/v1" + base_url = "https://api.lingyiwanwu.com/v1" super().__init__(key, model_name, base_url)