remove presence_penalty for chatglm (#268)

### What problem does this PR solve?

Issue link:#265

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
KevinHuSh 2024-04-09 09:24:08 +08:00 committed by GitHub
parent cd254b6bdd
commit 6748872b0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,6 +116,7 @@ class ZhipuChat(Base):
if system:
history.insert(0, {"role": "system", "content": system})
try:
if "presence_penalty" in gen_conf: del gen_conf["presence_penalty"]
response = self.client.chat.completions.create(
model=self.model_name,
messages=history,