Skip to content

Commit ad85e67

Browse files
committed
abort response generation aborting
1 parent 98ead7f commit ad85e67

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/client/components/ChatV2/ChatBox.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import { Send } from '@mui/icons-material'
33
import StopIcon from '@mui/icons-material/Stop'
44
import { validModels } from '../../../config'
5-
import { Box, IconButton, TextField, Typography } from '@mui/material'
5+
import { Box, IconButton, TextField, Tooltip, Typography } from '@mui/material'
66
import { useState, useRef } from 'react'
77
import useUserStatus from '../../hooks/useUserStatus'
88
import { useParams } from 'react-router-dom'
@@ -86,12 +86,14 @@ export const ChatBox = ({
8686
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', mt: '0.5rem' }}>
8787
<ModelSelector currentModel={currentModel} setModel={setModel} models={validModels.map((m) => m.name)} />
8888

89-
{/* Submit/Stop button */}
9089
{disabled ? (
91-
// TODO: finish the stop signal API
92-
<IconButton disabled={!disabled}>
93-
<StopIcon />
94-
</IconButton>
90+
// Stop signal is currently not supported due to OpenAI response cancel endpoint not working properly.
91+
// Try implementing this in the fall 2025.
92+
<Tooltip title="Cancelling responses is currently not supported" arrow placement="top">
93+
<IconButton disabled={!disabled}>
94+
<StopIcon />
95+
</IconButton>
96+
</Tooltip>
9597
) : (
9698
<IconButton disabled={disabled} type="submit">
9799
<Send />

0 commit comments

Comments
 (0)