{#if $CurrentChat.scriptstate && Object.keys($CurrentChat.scriptstate).length > 0} {#each Object.keys($CurrentChat.scriptstate) as key} {key} {#if typeof $CurrentChat.scriptstate[key] === "object"}
Object
{:else if typeof $CurrentChat.scriptstate[key] === "string"} {:else if typeof $CurrentChat.scriptstate[key] === "number"} {/if} {/each} {:else}
No variables
{/if}
{#await getCharToken($CurrentCharacter)} Character Persistant
Loading...
Character Dynamic
Loading...
{:then token} Character Persistant
{token.persistant} Tokens
Character Dynamic
{token.dynamic} Tokens
{/await} {#await getChatToken($CurrentChat)} Current Chat
Loading...
{:then token} Current Chat
{token} Tokens
{/await} {#if $DataBase.promptTemplate} {#await tokenizePreset($DataBase.promptTemplate)} Prompt Template
Loading...
{:then token} Prompt Template
{token} Tokens
{/await} {/if}
This is a estimate. The actual token count may be different.
{#each autopilot as text} {/each}