Skip to content

Commit

Permalink
forward_to_openai_endpoint += stop
Browse files Browse the repository at this point in the history
  • Loading branch information
olegklimov committed Jan 3, 2024
1 parent 458d9b9 commit d341c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/forward_to_openai_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub async fn forward_to_openai_style_endpoint(
"stream": false,
"temperature": sampling_parameters.temperature,
"max_tokens": sampling_parameters.max_new_tokens,
"stop": sampling_parameters.stop,
});
if is_passthrough {
_passthrough_messages_to_json(&mut data, prompt);
Expand Down

0 comments on commit d341c54

Please sign in to comment.