Update common.ts

This commit is contained in:
LiangGuoqian
2023-05-18 10:24:44 +08:00
committed by GitHub
parent 223ba26902
commit d306b26486

View File

@ -18,4 +18,4 @@ export const setSession = (sessionId: string) => {
return { 'Set-Cookie': `session_id=${sessionId}` }
}
export const client = new ChatClient(API_KEY, API_URL)
export const client = new ChatClient(API_KEY, API_URL ? API_URL : undefined)