mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
refactor: separate voice controls and configurable Realtime connections
This commit is contained in:
1 parent
0ba00f4662
commit
1a1cbadf5b
21 files changed
+3126
-2793
No files matched your search
@@ -12,6 +12,7 @@ import { createRealtimeTokenHandler } from './openai/realtime.js';
|
||||
function openAiRealtimeProxy({
|
||||
sourceRoot = defaultSourceRoot,
|
||||
annotationGuidance,
|
||||
realtime = {},
|
||||
} = {}) {
|
||||
function install(middlewares) {
|
||||
middlewares.use('/api/openai/hud-summary', handleHudSummary);
|
||||
@@ -23,7 +24,7 @@ function openAiRealtimeProxy({
|
||||
|
||||
middlewares.use(
|
||||
'/api/realtime/token',
|
||||
createRealtimeTokenHandler({ annotationGuidance }),
|
||||
createRealtimeTokenHandler({ ...realtime, annotationGuidance }),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user