✅ Fix chat interface - restore continuous conversation flow
🎯 Major improvements to MissionControl component: - Always keep input field visible and functional after AI responses - Auto-clear input after submitting questions for better UX - Add dynamic visual indicators (first question vs follow-up) - Improve response layout with clear separation and hints - Enable proper chat-like experience for continuous learning 🌟 Additional enhancements: - Better language-specific messaging throughout interface - Clearer visual hierarchy between input and response areas - Intuitive flow that guides users to ask follow-up questions - Maintains responsive design and accessibility 🔧 Technical changes: - Enhanced MissionControl state management - Improved component layout and styling - Better TypeScript integration across components - Updated tsconfig for stricter type checking
This commit is contained in:
133
node_modules/openai/resources/beta/realtime/sessions.d.ts
generated
vendored
133
node_modules/openai/resources/beta/realtime/sessions.d.ts
generated
vendored
@@ -1,6 +1,5 @@
|
||||
import { APIResource } from "../../../core/resource.js";
|
||||
import { APIPromise } from "../../../core/api-promise.js";
|
||||
import { RequestOptions } from "../../../internal/request-options.js";
|
||||
import { APIResource } from "../../../resource.js";
|
||||
import * as Core from "../../../core.js";
|
||||
export declare class Sessions extends APIResource {
|
||||
/**
|
||||
* Create an ephemeral API token for use in client-side applications with the
|
||||
@@ -17,7 +16,7 @@ export declare class Sessions extends APIResource {
|
||||
* await client.beta.realtime.sessions.create();
|
||||
* ```
|
||||
*/
|
||||
create(body: SessionCreateParams, options?: RequestOptions): APIPromise<SessionCreateResponse>;
|
||||
create(body: SessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<SessionCreateResponse>;
|
||||
}
|
||||
/**
|
||||
* Realtime session object configuration.
|
||||
@@ -80,18 +79,12 @@ export interface Session {
|
||||
/**
|
||||
* The Realtime model used for this session.
|
||||
*/
|
||||
model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17';
|
||||
model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17';
|
||||
/**
|
||||
* The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
|
||||
* For `pcm16`, output audio is sampled at a rate of 24kHz.
|
||||
*/
|
||||
output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
|
||||
/**
|
||||
* The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
|
||||
* minimum speed. 1.5 is the maximum speed. This value can only be changed in
|
||||
* between model turns, not while a response is in progress.
|
||||
*/
|
||||
speed?: number;
|
||||
/**
|
||||
* Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a
|
||||
* temperature of 0.8 is highly recommended for best performance.
|
||||
@@ -106,14 +99,6 @@ export interface Session {
|
||||
* Tools (functions) available to the model.
|
||||
*/
|
||||
tools?: Array<Session.Tool>;
|
||||
/**
|
||||
* Configuration options for tracing. Set to null to disable tracing. Once tracing
|
||||
* is enabled for a session, the configuration cannot be modified.
|
||||
*
|
||||
* `auto` will create a trace for the session with default values for the workflow
|
||||
* name, group id, and metadata.
|
||||
*/
|
||||
tracing?: 'auto' | Session.TracingConfiguration;
|
||||
/**
|
||||
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
|
||||
* set to `null` to turn off, in which case the client must manually trigger model
|
||||
@@ -130,8 +115,7 @@ export interface Session {
|
||||
/**
|
||||
* The voice the model uses to respond. Voice cannot be changed during the session
|
||||
* once the model has responded with audio at least once. Current voice options are
|
||||
* `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`,
|
||||
* `shimmer`, and `verse`.
|
||||
* `alloy`, `ash`, `ballad`, `coral`, `echo` `sage`, `shimmer` and `verse`.
|
||||
*/
|
||||
voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'fable' | 'onyx' | 'nova' | 'sage' | 'shimmer' | 'verse';
|
||||
}
|
||||
@@ -201,26 +185,6 @@ export declare namespace Session {
|
||||
*/
|
||||
type?: 'function';
|
||||
}
|
||||
/**
|
||||
* Granular configuration for tracing.
|
||||
*/
|
||||
interface TracingConfiguration {
|
||||
/**
|
||||
* The group id to attach to this trace to enable filtering and grouping in the
|
||||
* traces dashboard.
|
||||
*/
|
||||
group_id?: string;
|
||||
/**
|
||||
* The arbitrary metadata to attach to this trace to enable filtering in the traces
|
||||
* dashboard.
|
||||
*/
|
||||
metadata?: unknown;
|
||||
/**
|
||||
* The name of the workflow to attach to this trace. This is used to name the trace
|
||||
* in the traces dashboard.
|
||||
*/
|
||||
workflow_name?: string;
|
||||
}
|
||||
/**
|
||||
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
|
||||
* set to `null` to turn off, in which case the client must manually trigger model
|
||||
@@ -291,8 +255,8 @@ export interface SessionCreateResponse {
|
||||
* Configuration for input audio transcription, defaults to off and can be set to
|
||||
* `null` to turn off once on. Input audio transcription is not native to the
|
||||
* model, since the model consumes audio directly. Transcription runs
|
||||
* asynchronously and should be treated as rough guidance rather than the
|
||||
* representation understood by the model.
|
||||
* asynchronously through Whisper and should be treated as rough guidance rather
|
||||
* than the representation understood by the model.
|
||||
*/
|
||||
input_audio_transcription?: SessionCreateResponse.InputAudioTranscription;
|
||||
/**
|
||||
@@ -324,12 +288,6 @@ export interface SessionCreateResponse {
|
||||
* The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
|
||||
*/
|
||||
output_audio_format?: string;
|
||||
/**
|
||||
* The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
|
||||
* minimum speed. 1.5 is the maximum speed. This value can only be changed in
|
||||
* between model turns, not while a response is in progress.
|
||||
*/
|
||||
speed?: number;
|
||||
/**
|
||||
* Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.
|
||||
*/
|
||||
@@ -343,14 +301,6 @@ export interface SessionCreateResponse {
|
||||
* Tools (functions) available to the model.
|
||||
*/
|
||||
tools?: Array<SessionCreateResponse.Tool>;
|
||||
/**
|
||||
* Configuration options for tracing. Set to null to disable tracing. Once tracing
|
||||
* is enabled for a session, the configuration cannot be modified.
|
||||
*
|
||||
* `auto` will create a trace for the session with default values for the workflow
|
||||
* name, group id, and metadata.
|
||||
*/
|
||||
tracing?: 'auto' | SessionCreateResponse.TracingConfiguration;
|
||||
/**
|
||||
* Configuration for turn detection. Can be set to `null` to turn off. Server VAD
|
||||
* means that the model will detect the start and end of speech based on audio
|
||||
@@ -385,12 +335,13 @@ export declare namespace SessionCreateResponse {
|
||||
* Configuration for input audio transcription, defaults to off and can be set to
|
||||
* `null` to turn off once on. Input audio transcription is not native to the
|
||||
* model, since the model consumes audio directly. Transcription runs
|
||||
* asynchronously and should be treated as rough guidance rather than the
|
||||
* representation understood by the model.
|
||||
* asynchronously through Whisper and should be treated as rough guidance rather
|
||||
* than the representation understood by the model.
|
||||
*/
|
||||
interface InputAudioTranscription {
|
||||
/**
|
||||
* The model to use for transcription.
|
||||
* The model to use for transcription, `whisper-1` is the only currently supported
|
||||
* model.
|
||||
*/
|
||||
model?: string;
|
||||
}
|
||||
@@ -413,26 +364,6 @@ export declare namespace SessionCreateResponse {
|
||||
*/
|
||||
type?: 'function';
|
||||
}
|
||||
/**
|
||||
* Granular configuration for tracing.
|
||||
*/
|
||||
interface TracingConfiguration {
|
||||
/**
|
||||
* The group id to attach to this trace to enable filtering and grouping in the
|
||||
* traces dashboard.
|
||||
*/
|
||||
group_id?: string;
|
||||
/**
|
||||
* The arbitrary metadata to attach to this trace to enable filtering in the traces
|
||||
* dashboard.
|
||||
*/
|
||||
metadata?: unknown;
|
||||
/**
|
||||
* The name of the workflow to attach to this trace. This is used to name the trace
|
||||
* in the traces dashboard.
|
||||
*/
|
||||
workflow_name?: string;
|
||||
}
|
||||
/**
|
||||
* Configuration for turn detection. Can be set to `null` to turn off. Server VAD
|
||||
* means that the model will detect the start and end of speech based on audio
|
||||
@@ -520,18 +451,12 @@ export interface SessionCreateParams {
|
||||
/**
|
||||
* The Realtime model used for this session.
|
||||
*/
|
||||
model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17';
|
||||
model?: 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17';
|
||||
/**
|
||||
* The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
|
||||
* For `pcm16`, output audio is sampled at a rate of 24kHz.
|
||||
*/
|
||||
output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
|
||||
/**
|
||||
* The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
|
||||
* minimum speed. 1.5 is the maximum speed. This value can only be changed in
|
||||
* between model turns, not while a response is in progress.
|
||||
*/
|
||||
speed?: number;
|
||||
/**
|
||||
* Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a
|
||||
* temperature of 0.8 is highly recommended for best performance.
|
||||
@@ -546,14 +471,6 @@ export interface SessionCreateParams {
|
||||
* Tools (functions) available to the model.
|
||||
*/
|
||||
tools?: Array<SessionCreateParams.Tool>;
|
||||
/**
|
||||
* Configuration options for tracing. Set to null to disable tracing. Once tracing
|
||||
* is enabled for a session, the configuration cannot be modified.
|
||||
*
|
||||
* `auto` will create a trace for the session with default values for the workflow
|
||||
* name, group id, and metadata.
|
||||
*/
|
||||
tracing?: 'auto' | SessionCreateParams.TracingConfiguration;
|
||||
/**
|
||||
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
|
||||
* set to `null` to turn off, in which case the client must manually trigger model
|
||||
@@ -583,18 +500,18 @@ export declare namespace SessionCreateParams {
|
||||
/**
|
||||
* Configuration for the ephemeral token expiration.
|
||||
*/
|
||||
expires_after?: ClientSecret.ExpiresAfter;
|
||||
expires_at?: ClientSecret.ExpiresAt;
|
||||
}
|
||||
namespace ClientSecret {
|
||||
/**
|
||||
* Configuration for the ephemeral token expiration.
|
||||
*/
|
||||
interface ExpiresAfter {
|
||||
interface ExpiresAt {
|
||||
/**
|
||||
* The anchor point for the ephemeral token expiration. Only `created_at` is
|
||||
* currently supported.
|
||||
*/
|
||||
anchor: 'created_at';
|
||||
anchor?: 'created_at';
|
||||
/**
|
||||
* The number of seconds from the anchor point to the expiration. Select a value
|
||||
* between `10` and `7200`.
|
||||
@@ -667,26 +584,6 @@ export declare namespace SessionCreateParams {
|
||||
*/
|
||||
type?: 'function';
|
||||
}
|
||||
/**
|
||||
* Granular configuration for tracing.
|
||||
*/
|
||||
interface TracingConfiguration {
|
||||
/**
|
||||
* The group id to attach to this trace to enable filtering and grouping in the
|
||||
* traces dashboard.
|
||||
*/
|
||||
group_id?: string;
|
||||
/**
|
||||
* The arbitrary metadata to attach to this trace to enable filtering in the traces
|
||||
* dashboard.
|
||||
*/
|
||||
metadata?: unknown;
|
||||
/**
|
||||
* The name of the workflow to attach to this trace. This is used to name the trace
|
||||
* in the traces dashboard.
|
||||
*/
|
||||
workflow_name?: string;
|
||||
}
|
||||
/**
|
||||
* Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
|
||||
* set to `null` to turn off, in which case the client must manually trigger model
|
||||
|
||||
Reference in New Issue
Block a user