You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MAX_HISTORY is set to 20. The add_to_history function appends single messages (first the "user" prompt, then the "assistant" response). If the list exceeds 20 items, it slices the list (history[-MAX_HISTORY:]), dropping exactly one oldest message.
MAX_HISTORY is set to 20. The add_to_history function appends single messages (first the "user" prompt, then the "assistant" response). If the list exceeds 20 items, it slices the list (history[-MAX_HISTORY:]), dropping exactly one oldest message.