Selaa lähdekoodia

fix 01.ai url error (#1977)

### What problem does this PR solve?

#1976  fix 01.ai url error

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Zhedong Cen <cenzhedong2@126.com>
tags/v0.10.0
黄腾 1 vuosi sitten
vanhempi
commit
9729ca2aed
No account linked to committer's email address
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      rag/llm/chat_model.py

+ 2
- 2
rag/llm/chat_model.py Näytä tiedosto

@@ -1033,7 +1033,7 @@ class SILICONFLOWChat(Base):


class YiChat(Base):
def __init__(self, key, model_name, base_url="https://api.lingyiwanwu.com/v1"):
def __init__(self, key, model_name, base_url="https://api.01.ai/v1"):
if not base_url:
base_url = "https://api.lingyiwanwu.com/v1"
base_url = "https://api.01.ai/v1"
super().__init__(key, model_name, base_url)

Loading…
Peruuta
Tallenna