forked from tuvn86/webapp-conversation
Update common.ts
ChatClient add API_URL
This commit is contained in:
parent
c4f6cdb7ae
commit
223ba26902
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { type NextRequest } from 'next/server'
|
import { type NextRequest } from 'next/server'
|
||||||
import { APP_ID, API_KEY } from '@/config'
|
import { APP_ID, API_KEY, API_URL } from '@/config'
|
||||||
import { ChatClient } from 'dify-client'
|
import { ChatClient } from 'dify-client'
|
||||||
import { v4 } from 'uuid'
|
import { v4 } from 'uuid'
|
||||||
|
|
||||||
|
|
@ -18,4 +18,4 @@ export const setSession = (sessionId: string) => {
|
||||||
return { 'Set-Cookie': `session_id=${sessionId}` }
|
return { 'Set-Cookie': `session_id=${sessionId}` }
|
||||||
}
|
}
|
||||||
|
|
||||||
export const client = new ChatClient(API_KEY)
|
export const client = new ChatClient(API_KEY, API_URL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue