We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1250fb3 commit 808a8fdCopy full SHA for 808a8fd
src/devtools/App.tsx
@@ -77,7 +77,10 @@ function App() {
77
78
// 会话名称自动生成
79
useEffect(() => {
80
- if (store.currentSession.name === 'Untitled' && store.currentSession.messages.length > 3) {
+ if (
81
+ store.currentSession.name === 'Untitled'
82
+ && store.currentSession.messages.findIndex(msg => msg.role === 'assistant') !== -1
83
+ ) {
84
generateName(store.currentSession)
85
}
86
}, [store.currentSession.messages])
0 commit comments