Skip to content

Commit 1ecd93b

Browse files
committed
style(openai): prune split leftovers
1 parent 506e50c commit 1ecd93b

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎extensions/openai/realtime-voice-bridge.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
import type {
1010
RealtimeVoiceBridge,
1111
RealtimeVoiceSessionConnection,
12+
RealtimeVoiceToolResultOptions,
1213
} from "openclaw/plugin-sdk/realtime-voice";
1314
import { RealtimeVoiceSessionLifecycle } from "openclaw/plugin-sdk/realtime-voice";
1415
import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";

‎extensions/openai/realtime-voice-protocol.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
type OpenAIRealtimeVoiceBridgeConfig,
1818
type RealtimeAzureDeploymentSessionUpdate,
1919
type RealtimeGaSessionUpdate,
20+
type RealtimeTurnDetectionConfig,
2021
} from "./realtime-voice-session-policy.js";
2122

2223
export abstract class OpenAIRealtimeProtocol {

‎extensions/openai/realtime-voice-session-policy.ts‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,7 @@ export type RealtimeTurnDetectionConfig = {
182182
interrupt_response?: boolean;
183183
};
184184

185-
export type OpenAIRealtimePolicy = RealtimeGaSessionPolicy;
186-
187-
export type RealtimeGaSessionPolicy = {
185+
type RealtimeGaSessionPolicy = {
188186
type: "realtime";
189187
model: string;
190188
instructions?: string;
@@ -227,7 +225,7 @@ export type RealtimeAzureDeploymentSessionUpdate = {
227225
};
228226
};
229227

230-
export type OpenAIRealtimeAudioFormatConfig =
228+
type OpenAIRealtimeAudioFormatConfig =
231229
| {
232230
type: "audio/pcm";
233231
rate: 24000;
@@ -277,9 +275,9 @@ type OpenAIRealtimeApiKeyResolution =
277275

278276
export const OPENAI_REALTIME_PLATFORM_AUTH_REQUIRED =
279277
"OpenAI Realtime voice requires an OpenAI Platform API key";
280-
export const OPENAI_GPT_LIVE_AUTH_REQUIRED =
278+
const OPENAI_GPT_LIVE_AUTH_REQUIRED =
281279
"GPT-Live Talk requires either an OpenAI Platform API key or a ChatGPT OAuth subscription profile";
282-
export const OPENAI_GPT_LIVE_AUTHORED_PLATFORM_AUTH_UNAVAILABLE =
280+
const OPENAI_GPT_LIVE_AUTHORED_PLATFORM_AUTH_UNAVAILABLE =
283281
"GPT-Live Talk requires a working OpenAI Platform API key or ChatGPT OAuth subscription profile. The selected Platform API-key source could not be resolved, so OAuth fallback was not used; fix or remove it.";
284282
export const OPENAI_REALTIME_API_KEY_REQUIRED = "OpenAI Realtime voice requires an API key";
285283
export const OPENAI_REALTIME_CONFIGURED_API_KEY_REJECTED =
@@ -438,7 +436,7 @@ export function normalizeOpenAIRealtimeTools(
438436
return normalized.length > 0 ? normalized : undefined;
439437
}
440438

441-
export function resolveOpenAIRealtimeAudioFormat(
439+
function resolveOpenAIRealtimeAudioFormat(
442440
audioFormat: RealtimeVoiceAudioFormat = REALTIME_VOICE_AUDIO_FORMAT_G711_ULAW_8KHZ,
443441
): OpenAIRealtimeAudioFormatConfig {
444442
return audioFormat.encoding === "pcm16"

0 commit comments

Comments
 (0)