mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-01 16:18:51 +01:00
🧠 fix(Cohere): map to expected SDK params (#2329)
This commit is contained in:
parent
cd7f3a51e1
commit
fb80af05be
2 changed files with 9 additions and 9 deletions
|
|
@ -69,13 +69,13 @@ function createCoherePayload({ modelOptions }) {
|
|||
return {
|
||||
message: latestUserMessageContent,
|
||||
model: model,
|
||||
chat_history: chatHistory,
|
||||
chatHistory,
|
||||
stream: stream ?? false,
|
||||
temperature: temperature,
|
||||
frequency_penalty: frequency_penalty,
|
||||
presence_penalty: presence_penalty,
|
||||
max_tokens: max_tokens,
|
||||
stop_sequences: stop,
|
||||
frequencyPenalty: frequency_penalty,
|
||||
presencePenalty: presence_penalty,
|
||||
maxTokens: max_tokens,
|
||||
stopSequences: stop,
|
||||
preamble,
|
||||
p: top_p,
|
||||
...rest,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue