PPQ Private Mode StartOS package
Wraps the ppq-private-mode-proxy (git submodule, built from its own Dockerfile) as a StartOS 0.4.0 service: - Critical first-run task + masked action to set the PPQ.AI API key - OpenAI-/Anthropic-compatible API interface on port 8787 - Health check reflects enclave attestation (proxy binds only after attestation succeeds) - x86_64 + aarch64, config backed up via the main volume Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
commit
b6b2589c55
40 files changed
+2532
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { sdk } from './sdk'
|
||||
import { apiPort } from './utils'
|
||||
import { i18n } from './i18n'
|
||||
|
||||
// Host id (the sdk.MultiHost.of group) — distinct from the interface id exported on it.
|
||||
export const apiHostId = 'api-multi'
|
||||
export const apiInterfaceId = 'api'
|
||||
|
||||
export const setInterfaces = sdk.setupInterfaces(async ({ effects }) => {
|
||||
const apiMulti = sdk.MultiHost.of(effects, apiHostId)
|
||||
const apiMultiOrigin = await apiMulti.bindPort(apiPort, {
|
||||
protocol: 'http',
|
||||
})
|
||||
const api = sdk.createInterface(effects, {
|
||||
name: i18n('OpenAI-Compatible API'),
|
||||
id: apiInterfaceId,
|
||||
description: i18n(
|
||||
'Point any OpenAI or Anthropic SDK client at this URL to use PPQ private (TEE) models with end-to-end encryption',
|
||||
),
|
||||
type: 'api',
|
||||
masked: true,
|
||||
schemeOverride: null,
|
||||
username: null,
|
||||
path: '',
|
||||
query: {},
|
||||
})
|
||||
|
||||
const apiReceipt = await apiMultiOrigin.export([api])
|
||||
|
||||
return [apiReceipt]
|
||||
})
|
||||
Reference in new issue
Block a user