#Quick question I am using the chat
30 messages ยท Page 1 of 1 (latest)
e.g. https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb here:
{
"role": "system",
"content": "You are a helpful, pattern-following assistant that translates corporate jargon into plain English.",
},
{
"role": "system",
"name": "example_user",
"content": "New synergies will help drive top-line growth.",
},
{
"role": "system",
"name": "example_assistant",
"content": "Things working well together will increase revenue.",
},
{
"role": "system",
"name": "example_user",
"content": "Let's circle back when we have more bandwidth to touch base on opportunities for increased leverage.",
},
{
"role": "system",
"name": "example_assistant",
"content": "Let's talk later when we're less busy about how to do better.",
},
{
"role": "user",
"content": "This late pivot means we don't have time to boil the ocean for the client deliverable.",
},
]
Look at the documentation on how to count tokens (the code part). It shows you how the name is formatted when sent to the AI
From what I read it will replace the "user/assistant" label
You can use the name property with other roles as well
I assume it doesn't really matter what the role is if it does override the default label
thats exactly what I wanted ๐
The only issue is that every reply is primed with <|start|>assistant<|message|> so the AI can struggle to stay in character
would be nice if you could override it to be primed with a different name instead
hmm, quite, any guess to where assistant takes it's name from?
the default system prompt perhaps?
Got it
It's probably trained with user/assistant pairs
Makes sense
I've found some decent ways to make it stay in character
You just can't rely on the way OpenAI intended you to use the messages array lol
I have some good algorithms which are working so far, history compression primed with a system prompt