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>
This commit is contained in:
liuhua 2024-09-27 12:55:58 +08:00 committed by GitHub
parent 297b2d0ac9
commit e11a74eed5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)