Interface DuplexModelOptions<TModel>

interface DuplexModelOptions<TModel> {
    apiKey?: string;
    apiSecret?: string;
    baseURL?: string;
    connOptions?: APIConnectOptions;
    maxSessionDuration?: null | number;
    model: TModel;
    modelOptions?: DuplexOptions<TModel>;
    provider?: string;
    voice?: string;
}

Type Parameters

Properties

apiKey?: string
apiSecret?: string
baseURL?: string
connOptions?: APIConnectOptions
maxSessionDuration?: null | number

Recycle the connection after this many milliseconds.

model: TModel

Provider-prefixed duplex model, for example openai/gpt-live-1.

modelOptions?: DuplexOptions<TModel>

Model-specific options; OpenAIDuplexOptions for GPT-Live. Delegated work runs on the default service tier only.

provider?: string

Host that must serve the model, e.g. 'openai'. The session is refused if no host in the region matches.

voice?: string

Output voice, marin by default for GPT-Live.