liuhua liuhua commited on
Commit
be56b52
·
1 Parent(s): 3ec35b2

Update Yichat base_url (#2620)

Browse files

### 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 <[email protected]>

Files changed (1) hide show
  1. rag/llm/chat_model.py +2 -2
rag/llm/chat_model.py CHANGED
@@ -981,9 +981,9 @@ class SILICONFLOWChat(Base):
981
 
982
 
983
  class YiChat(Base):
984
- def __init__(self, key, model_name, base_url="https://api.01.ai/v1"):
985
  if not base_url:
986
- base_url = "https://api.01.ai/v1"
987
  super().__init__(key, model_name, base_url)
988
 
989
 
 
981
 
982
 
983
  class YiChat(Base):
984
+ def __init__(self, key, model_name, base_url="https://api.lingyiwanwu.com/v1"):
985
  if not base_url:
986
+ base_url = "https://api.lingyiwanwu.com/v1"
987
  super().__init__(key, model_name, base_url)
988
 
989