mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-16 15:35:31 +01:00
Merge branch 'dev' into feat/custom-endpoint-conversation-id
This commit is contained in:
commit
888e3a31cf
7 changed files with 143 additions and 4 deletions
|
|
@ -1224,7 +1224,9 @@ ${convo}
|
|||
}
|
||||
|
||||
if (this.isOmni === true && modelOptions.max_tokens != null) {
|
||||
modelOptions.max_completion_tokens = modelOptions.max_tokens;
|
||||
const paramName =
|
||||
modelOptions.useResponsesApi === true ? 'max_output_tokens' : 'max_completion_tokens';
|
||||
modelOptions[paramName] = modelOptions.max_tokens;
|
||||
delete modelOptions.max_tokens;
|
||||
}
|
||||
if (this.isOmni === true && modelOptions.temperature != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue