mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-15 12:08:27 +00:00
Moved the chats of the BeyondFacts Lab to the embedded chat of assistants (#1203)
This commit is contained in:
1 parent
dc97db256e
commit
cb54ad297d
27 files changed
+1023
-743
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using AIStudio.Chat.Embedded;
|
||||
using AIStudio.Models;
|
||||
|
||||
namespace AIStudio.Assistants.BeyondFactsLab;
|
||||
@@ -83,7 +84,7 @@ public static class BflMaterialBudget
|
||||
if (!contextWindow.IsKnown)
|
||||
return CHARACTERS_WITHOUT_A_KNOWN_CONTEXT_WINDOW;
|
||||
|
||||
var freeTokens = (long)contextWindow.DefaultTokens - BflTokenBudget.RESERVE_TOKENS - (long)Math.Max(0, sentImages) * TOKENS_PER_IMAGE;
|
||||
var freeTokens = (long)contextWindow.DefaultTokens - EmbeddedChatTokenBudget.RESERVE_TOKENS - (long)Math.Max(0, sentImages) * TOKENS_PER_IMAGE;
|
||||
var freeCharacters = freeTokens * CHARACTERS_PER_TOKEN - promptCharacters;
|
||||
return (int)Math.Clamp((long)(freeCharacters * SHARE_OF_THE_FREE_CONTEXT), 0, MAX_CHARACTERS);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user