fix(web): 修复思考开关无效
This commit is contained in:
@@ -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={{
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user