@@ -2,7 +2,7 @@ import React from 'react'
2
2
import { Send } from '@mui/icons-material'
3
3
import StopIcon from '@mui/icons-material/Stop'
4
4
import { validModels } from '../../../config'
5
- import { Box , IconButton , TextField , Typography } from '@mui/material'
5
+ import { Box , IconButton , TextField , Tooltip , Typography } from '@mui/material'
6
6
import { useState , useRef } from 'react'
7
7
import useUserStatus from '../../hooks/useUserStatus'
8
8
import { useParams } from 'react-router-dom'
@@ -86,12 +86,14 @@ export const ChatBox = ({
86
86
< Box sx = { { display : 'flex' , justifyContent : 'space-between' , alignItems : 'center' , mt : '0.5rem' } } >
87
87
< ModelSelector currentModel = { currentModel } setModel = { setModel } models = { validModels . map ( ( m ) => m . name ) } />
88
88
89
- { /* Submit/Stop button */ }
90
89
{ 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 >
95
97
) : (
96
98
< IconButton disabled = { disabled } type = "submit" >
97
99
< Send />
0 commit comments