forked from tuvn86/webapp-conversation
chore: use sdk
This commit is contained in:
parent
139adcbb38
commit
22d2aae597
5 changed files with 5 additions and 119 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { type NextRequest } from 'next/server'
|
||||
import { APP_ID, API_KEY } from '@/config'
|
||||
import { ChatClient } from '../sdk'
|
||||
import { ChatClient } from 'langgenius-client'
|
||||
import uuid from 'uuid'
|
||||
|
||||
const userPrefix = `user_${APP_ID}:`;
|
||||
const uuid = require('uuid')
|
||||
// const uuid = require('uuid')
|
||||
|
||||
export const getInfo = (request: NextRequest) => {
|
||||
const sessionId = request.cookies.get('session_id')?.value || uuid.v4();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue