소스 검색

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>
tags/v0.12.0
liuhua 1 년 전
부모
커밋
e11a74eed5
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      rag/llm/chat_model.py

+ 2
- 2
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)



Loading…
취소
저장