Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"postpublish": "npm run clean-docs"
},
"dependencies": {
"@jambonz/schema": "^0.4.0",
"@jambonz/schema": "^0.4.1",
"ajv": "^8.17.1",
"ws": "^8.18.0"
},
Expand Down
18 changes: 18 additions & 0 deletions typescript/src/types/verbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,23 @@ export interface UltravoxS2sVerb extends LlmBaseOptions {
verb: 'ultravox_s2s';
}

export interface QwenS2sVerb extends LlmBaseOptions {
verb: 'qwen_s2s';
/** DashScope authentication. Keys are region-bound: key and host must
* belong to the same region. */
auth?: {
/** DashScope API key (sk-...). May be omitted when the account has a
* stored credential for the qwen vendor. */
apiKey?: string;
/** DashScope endpoint host. Default: 'dashscope-intl.aliyuncs.com'
* (international). Use a workspace-scoped host
* ('ws-<workspaceId>.<region>.maas.aliyuncs.com', Alibaba-recommended)
* or 'dashscope.aliyuncs.com' for the China (Beijing) region. */
host?: string;
[key: string]: unknown;
};
}

export interface DialogflowVerb {
verb: 'dialogflow';
id?: string;
Expand Down Expand Up @@ -927,6 +944,7 @@ export type Verb =
| ElevenlabsS2sVerb
| DeepgramS2sVerb
| UltravoxS2sVerb
| QwenS2sVerb
| DialogflowVerb
| AgentVerb
| ConferenceVerb
Expand Down
4 changes: 4 additions & 0 deletions typescript/src/verb-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export class VerbBuilder {
return this.addVerb({ verb: 'openai_s2s', ...opts });
}

qwen_s2s(opts: Omit<LlmBaseOptions, 'vendor'>): this {
return this.addVerb({ verb: 'qwen_s2s', ...opts });
}

/** Shortcut for s2s with vendor='google'. */
google_s2s(opts: Omit<LlmBaseOptions, 'vendor'>): this {
return this.addVerb({ verb: 'google_s2s', ...opts });
Expand Down
1 change: 1 addition & 0 deletions typescript/src/websocket/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class Session extends EventEmitter {
s2s(opts: Parameters<VerbBuilder['s2s']>[0]): this { this.builder.s2s(opts); return this; }
/** Shortcut for s2s with vendor='openai'. */
openai_s2s(opts: Parameters<VerbBuilder['openai_s2s']>[0]): this { this.builder.openai_s2s(opts); return this; }
qwen_s2s(opts: Parameters<VerbBuilder['qwen_s2s']>[0]): this { this.builder.qwen_s2s(opts); return this; }
/** Shortcut for s2s with vendor='google'. */
google_s2s(opts: Parameters<VerbBuilder['google_s2s']>[0]): this { this.builder.google_s2s(opts); return this; }
/** Shortcut for s2s with vendor='elevenlabs'. */
Expand Down