feat: cancellable api request

This commit is contained in:
Wentao Lyu 2023-03-17 03:13:42 +08:00
parent 66ad54168a
commit ef9f1ee1cf
11 changed files with 93 additions and 67 deletions

View file

@ -67,7 +67,7 @@ const Messages = ({ messages, messageTree }) => {
<div className="flex w-full items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300 text-sm">
Model: {modelName} {customModel?`(${customModel})`:null}
</div>
<div className="dark:gpt-dark-gray flex h-full flex-col items-center text-sm">
<div className="dark:gpt-dark-gray flex flex-col items-center text-sm">
{messageTree.length === 0 ? (
<Spinner />
) : (