4cda453c8a
Adds a second sdk.createInterface with type='api' and path='/api/endpoints' on the same uiPort (9999). StartOS dashboard now shows two service interfaces: Web UI and OpenAI-compatible API. The API URL is discoverable to other services without users needing to remember the /api/endpoints suffix.
29 lines
696 B
TypeScript
29 lines
696 B
TypeScript
export const DEFAULT_LANG = 'en_US'
|
|
|
|
const dict = {
|
|
// main.ts
|
|
'Starting Spark Control…': 0,
|
|
'Web Interface': 1,
|
|
'The web interface is ready': 2,
|
|
'The web interface is not ready': 3,
|
|
|
|
// interfaces.ts
|
|
'Web UI': 4,
|
|
'The Spark Control web interface': 5,
|
|
|
|
// actions
|
|
'Show Public Key': 6,
|
|
'Configure Sparks': 7,
|
|
|
|
// interfaces.ts (api)
|
|
'OpenAI-compatible API': 8,
|
|
'Service-discovery JSON at /api/endpoints. Other apps on the LAN can GET this to learn the current vLLM, Parakeet, and Magpie URLs.': 9,
|
|
} as const
|
|
|
|
/**
|
|
* Plumbing. DO NOT EDIT.
|
|
*/
|
|
export type I18nKey = keyof typeof dict
|
|
export type LangDict = Record<(typeof dict)[I18nKey], string>
|
|
export default dict
|