mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2026-02-04 01:25:30 +08:00
Compare commits
1 Commits
fix/the-2t
...
fix/conver
| Author | SHA1 | Date | |
|---|---|---|---|
| 4867d52b8f |
@ -1,3 +1,5 @@
|
|||||||
|
export const dynamic = 'force-dynamic'
|
||||||
|
|
||||||
import { type NextRequest } from 'next/server'
|
import { type NextRequest } from 'next/server'
|
||||||
import { NextResponse } from 'next/server'
|
import { NextResponse } from 'next/server'
|
||||||
import { client, getInfo, setSession } from '@/app/api/utils/common'
|
import { client, getInfo, setSession } from '@/app/api/utils/common'
|
||||||
|
|||||||
@ -63,8 +63,6 @@ const Main: FC = () => {
|
|||||||
const [conversationIdChangeBecauseOfNew, setConversationIdChangeBecauseOfNew, getConversationIdChangeBecauseOfNew] = useGetState(false)
|
const [conversationIdChangeBecauseOfNew, setConversationIdChangeBecauseOfNew, getConversationIdChangeBecauseOfNew] = useGetState(false)
|
||||||
const [isChatStarted, { setTrue: setChatStarted, setFalse: setChatNotStarted }] = useBoolean(false)
|
const [isChatStarted, { setTrue: setChatStarted, setFalse: setChatNotStarted }] = useBoolean(false)
|
||||||
const handleStartChat = (inputs: Record<string, any>) => {
|
const handleStartChat = (inputs: Record<string, any>) => {
|
||||||
createNewChat()
|
|
||||||
setConversationIdChangeBecauseOfNew(true)
|
|
||||||
setCurrInputs(inputs)
|
setCurrInputs(inputs)
|
||||||
setChatStarted()
|
setChatStarted()
|
||||||
// parse variables in introduction
|
// parse variables in introduction
|
||||||
|
|||||||
Reference in New Issue
Block a user