Unverified Commit 223ba269 authored by LiangGuoqian's avatar LiangGuoqian Committed by GitHub

Update common.ts

ChatClient add API_URL
parent c4f6cdb7
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 { v4 } from 'uuid'
......@@ -18,4 +18,4 @@ export const setSession = (sessionId: string) => {
return { 'Set-Cookie': `session_id=${sessionId}` }
}
export const client = new ChatClient(API_KEY)
export const client = new ChatClient(API_KEY, API_URL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment