Skip to content

Commit 05b03b8

Browse files
committed
merge frequency_penalty request parm with config
Signed-off-by: blob42 <contact@blob42.xyz>
1 parent 9aefa25 commit 05b03b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/http/endpoints/openai/request.go

+4
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ func updateRequestConfig(config *config.BackendConfig, input *schema.OpenAIReque
185185
config.RepeatPenalty = input.RepeatPenalty
186186
}
187187

188+
if input.FrequencyPenalty!= 0 {
189+
config.FrequencyPenalty = input.FrequencyPenalty
190+
}
191+
188192
if input.Keep != 0 {
189193
config.Keep = input.Keep
190194
}

0 commit comments

Comments
 (0)