⚡ (openai) Truncate messages sequence automatically if reaching token limit
This commit is contained in:
@@ -17,7 +17,7 @@ export const useToast = () => {
|
||||
}: Omit<ToastProps, 'onClose'>) => {
|
||||
toast({
|
||||
position: 'top-right',
|
||||
duration: details ? null : undefined,
|
||||
duration: details && status === 'error' ? null : undefined,
|
||||
render: ({ onClose }) => (
|
||||
<Toast
|
||||
title={title}
|
||||
|
||||
Reference in New Issue
Block a user