mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Model: Add rep pen for OAI API
This commit is contained in:
1
model.py
1
model.py
@@ -2549,6 +2549,7 @@ class OpenAIAPIInferenceModel(InferenceModel):
|
|||||||
"max_tokens": max_new,
|
"max_tokens": max_new,
|
||||||
"temperature": gen_settings.temp,
|
"temperature": gen_settings.temp,
|
||||||
"top_p": gen_settings.top_p,
|
"top_p": gen_settings.top_p,
|
||||||
|
"frequency_penalty": gen_settings.rep_pen,
|
||||||
"n": batch_count,
|
"n": batch_count,
|
||||||
"stream": False,
|
"stream": False,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user