feat: expand secure assistant workflows
Harden runtime execution and add local knowledge, Smart Heartbeat, usage visibility, responsive product surfaces, and cross-platform packaging support. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent
6ef1795b81
commit
b3fdf96962
@@ -0,0 +1,15 @@
|
||||
export function createOpenAIApiBaseUrl(baseUrl: string): string {
|
||||
const url = new URL(baseUrl)
|
||||
url.pathname = url.pathname.replace(/\/+$/u, '')
|
||||
url.search = ''
|
||||
url.hash = ''
|
||||
return url.toString().replace(/\/$/u, '')
|
||||
}
|
||||
|
||||
export function createOpenAIChatCompletionsUrl(baseUrl: string): URL {
|
||||
return new URL(`${createOpenAIApiBaseUrl(baseUrl)}/chat/completions`)
|
||||
}
|
||||
|
||||
export function createOpenAIImagesGenerationsUrl(baseUrl: string): URL {
|
||||
return new URL(`${createOpenAIApiBaseUrl(baseUrl)}/images/generations`)
|
||||
}
|
||||
Reference in New Issue
Block a user