### What problem does this PR solve?

#5201

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2025-02-21 15:15:38 +08:00 committed by GitHub
parent 46ff897107
commit 1a755e75c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -946,8 +946,6 @@ class OpenAI_APIChat(Base):
def __init__(self, key, model_name, base_url):
if not base_url:
raise ValueError("url cannot be None")
if base_url.split("/")[-1] != "v1":
base_url = os.path.join(base_url, "v1")
model_name = model_name.split("___")[0]
super().__init__(key, model_name, base_url)