stylistic update
This commit is contained in:
parent
5826ceeff4
commit
16a3aa385f
1 changed files with 7 additions and 2 deletions
|
|
@ -379,9 +379,14 @@ function compileChatMessages({
|
|||
|
||||
const countingSafetyBuffer = getTokenCountingBufferSafety(contextLength);
|
||||
const minOutputTokens = getMinResponseTokens(maxTokens);
|
||||
let inputTokensAvailable =
|
||||
contextLength - countingSafetyBuffer - minOutputTokens;
|
||||
|
||||
let inputTokensAvailable = contextLength;
|
||||
|
||||
// Leave space for output/safety
|
||||
inputTokensAvailable -= countingSafetyBuffer;
|
||||
inputTokensAvailable -= minOutputTokens;
|
||||
|
||||
// Non-negotiable messages
|
||||
inputTokensAvailable -= toolTokens;
|
||||
inputTokensAvailable -= systemMsgTokens;
|
||||
inputTokensAvailable -= lastMessagesTokens;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue