TTs whisper
This commit is contained in:
9
quibot-web/server/utils/pi-url.ts
Normal file
9
quibot-web/server/utils/pi-url.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { getCookie } from 'h3'
|
||||
|
||||
export function getPiBaseUrl(event: any): string {
|
||||
const cookieUrl = getCookie(event, 'quibot-pi-url')
|
||||
if (cookieUrl) return decodeURIComponent(cookieUrl)
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
return config.quibotBaseUrl
|
||||
}
|
||||
Reference in New Issue
Block a user