mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 00:59:28 -04:00
Add the GEM-X native backend with live pose and root displacement output, bounded duplex WebSocket streaming, session authorization, metrics and usage accounting. Share the embedded bidirectional RPC channel adapter across streaming backends.
Include backend build and gallery integration, API documentation, schemas and tests.
Assisted-by: Codex:gpt-6
Signed-off-by: Richard Palethorpe <io@richiejp.com>
(cherry picked from commit 016dc3d71a)
14 lines
668 B
C++
14 lines
668 B
C++
// SPDX-License-Identifier: MIT
|
|
#include "gemx_stream.h"
|
|
|
|
// PureGo supports at most 15 machine arguments; bundle scalar configuration
|
|
// without asking Go callers to reproduce a platform-dependent C structure.
|
|
extern "C" GEMX_API gemx_status localai_gemx_create(
|
|
const char *gem, const char *pose, const char *detector,
|
|
const char *module, const char *backend, const uint32_t *options,
|
|
int64_t gap, gemx_live **out, char *error, uint64_t capacity) {
|
|
return gemx_live_create(gem, pose, detector, module, backend, options[0],
|
|
"", options[1], options[2], options[3], options[4], options[5],
|
|
GEMX_LIVE_FRAME_INDEX, gap, out, error, capacity);
|
|
}
|