mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🪙 fix: Deepseek Pricing & Titling (#5459)
This commit is contained in:
parent
af430e46f4
commit
60c846b679
2 changed files with 7 additions and 3 deletions
|
|
@ -794,7 +794,11 @@ ${convo}
|
||||||
}
|
}
|
||||||
|
|
||||||
title = (
|
title = (
|
||||||
await this.sendPayload(instructionsPayload, { modelOptions, useChatCompletion })
|
await this.sendPayload(instructionsPayload, {
|
||||||
|
modelOptions,
|
||||||
|
useChatCompletion,
|
||||||
|
context: 'title',
|
||||||
|
})
|
||||||
).replaceAll('"', '');
|
).replaceAll('"', '');
|
||||||
|
|
||||||
const completionTokens = this.getTokenCount(title);
|
const completionTokens = this.getTokenCount(title);
|
||||||
|
|
@ -1384,7 +1388,7 @@ ${convo}
|
||||||
return reply;
|
return reply;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reasoningTokens.length > 0) {
|
if (reasoningTokens.length > 0 && this.options.context !== 'title') {
|
||||||
return reasoningTokens.join('') + message.content;
|
return reasoningTokens.join('') + message.content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ const tokenValues = Object.assign(
|
||||||
'claude-': { prompt: 0.8, completion: 2.4 },
|
'claude-': { prompt: 0.8, completion: 2.4 },
|
||||||
'command-r-plus': { prompt: 3, completion: 15 },
|
'command-r-plus': { prompt: 3, completion: 15 },
|
||||||
'command-r': { prompt: 0.5, completion: 1.5 },
|
'command-r': { prompt: 0.5, completion: 1.5 },
|
||||||
'deepseek-reasoner': { prompt: 0.14, completion: 0.55 },
|
'deepseek-reasoner': { prompt: 0.14, completion: 2.19 },
|
||||||
deepseek: { prompt: 0.07, completion: 0.28 },
|
deepseek: { prompt: 0.07, completion: 0.28 },
|
||||||
/* cohere doesn't have rates for the older command models,
|
/* cohere doesn't have rates for the older command models,
|
||||||
so this was from https://artificialanalysis.ai/models/command-light/providers */
|
so this was from https://artificialanalysis.ai/models/command-light/providers */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue