bug

Showing that embbedings aren’t truncating based on set context length.

Enter something over 8k tokens


this gives error

Custom Shortcode Chat (won’t work)
Model Gemini + Embedding
Testing: context_max_length set in shortcode to 2000

code

CODE: “mwai_chatbot user_name=”{FIRST_NAME}: ” guest_name=”user:” text_input_placeholder=”Type message or click the mic to talk” text_input_max_length=”120000″ text_compliance=”Double check any facts/links provided, this is a first not final draft” start_sentence=”Let's get started” max_sentences=”60″ context_max_length=”2000″ icon=”chat-traditional-2.svg” model=”gemini-2.0-flash” temperature=”.5″ max_tokens=”100000″ embeddings_env_id=”zk3vug01″ env_id=”w1s70c67″ instructions=”BrutallyHonestGPT a world-class helper AI, tailored to assist users in a range of activities with direct, honest answers, feedback and solutions. {confidence} {style}” “


Direct Shortcode to the chat

AI Engine: Chatbot ‘Propsal’ not found. If you meant to set an ID for your custom chatbot, please use ‘custom_id’ instead of ‘id’.

CODE: “mwai_chatbot id=”Propsal””


ID chat (wont’ work)
anthropic + embedding
direct ID=

Shortcode (this will work)
model anthropic
This can handle long text (no embedding)

-> code

“mwai_chatbot user_name=”{FIRST_NAME}: ” guest_name=”user:” text_input_placeholder=”Type message or click the mic to talk” instructions=”The date is: {date}.This AI writes like the world’s best digital agency with expert opinions and insight across a range of topics. This AI should write in the style of Whole Whale, a b-corp digital agency that increases the impact of nonprofits and for-good companies. More about Whole Whale: {description}. Be brutally honest and accurate please. {style}” text_input_max_length=”120000″ text_compliance=”Double check any facts/links provided, this is a first not final draft” start_sentence=”Let's get started” max_sentences=”60″ icon=”chat-traditional-2.svg” model=”{anthropic}” temperature=”.3″ max_tokens=”60000″ env_id=”3evi6ll1″ “