fix(web): 修复思考开关无效

This commit is contained in:
v-zhangjc9
2025-05-14 09:14:35 +08:00
parent aea8a7ed59
commit a129caf5f4
2 changed files with 1 additions and 4 deletions

View File

@@ -6,9 +6,6 @@ import {menus} from '../route.tsx'
const App: React.FC = () => {
const navigate = useNavigate()
const location = useLocation()
useEffect(() => {
console.log(location.pathname)
}, [location])
return (
<ProLayout
token={{

View File

@@ -135,7 +135,7 @@ function Conversation() {
onRequest({
message: {
role: 'user',
content: (!think && message.length === 0) ? `/no_think ${message}` : message,
content: (!think && messages.length === 0) ? `/no_think ${message}` : message,
},
stream: true,
})