mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-15 17:25:55 +08:00
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:
parent
cd254b6bdd
commit
6748872b0b
@ -116,6 +116,7 @@ class ZhipuChat(Base):
|
|||||||
if system:
|
if system:
|
||||||
history.insert(0, {"role": "system", "content": system})
|
history.insert(0, {"role": "system", "content": system})
|
||||||
try:
|
try:
|
||||||
|
if "presence_penalty" in gen_conf: del gen_conf["presence_penalty"]
|
||||||
response = self.client.chat.completions.create(
|
response = self.client.chat.completions.create(
|
||||||
model=self.model_name,
|
model=self.model_name,
|
||||||
messages=history,
|
messages=history,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user