@jambonz/llm 0.6.14 → 0.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +288 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +288 -0
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +279 -0
- package/dist/test-kit/index.cjs.map +1 -1
- package/dist/test-kit/index.js +279 -0
- package/dist/test-kit/index.js.map +1 -1
- package/package.json +1 -1
package/dist/test-kit/index.cjs
CHANGED
|
@@ -4100,6 +4100,277 @@ var elevenlabsS2sManifest = {
|
|
|
4100
4100
|
category: "s2s"
|
|
4101
4101
|
};
|
|
4102
4102
|
|
|
4103
|
+
// src/vendors/google-s2s.ts
|
|
4104
|
+
var googleS2sManifest = {
|
|
4105
|
+
vendor: "google_s2s",
|
|
4106
|
+
displayName: "Google Gemini Live",
|
|
4107
|
+
authKinds: [
|
|
4108
|
+
{
|
|
4109
|
+
kind: "googleApiKey",
|
|
4110
|
+
displayName: "API Key (Gemini Developer API)",
|
|
4111
|
+
fields: [
|
|
4112
|
+
{
|
|
4113
|
+
name: "apiKey",
|
|
4114
|
+
label: "API Key",
|
|
4115
|
+
type: "password",
|
|
4116
|
+
required: true,
|
|
4117
|
+
help: "A Gemini API key from https://aistudio.google.com/apikey"
|
|
4118
|
+
}
|
|
4119
|
+
]
|
|
4120
|
+
},
|
|
4121
|
+
{
|
|
4122
|
+
kind: "vertexServiceAccount",
|
|
4123
|
+
displayName: "Service Account JSON (Vertex AI)",
|
|
4124
|
+
fields: [
|
|
4125
|
+
{
|
|
4126
|
+
name: "credentials",
|
|
4127
|
+
label: "Service Account Key (JSON)",
|
|
4128
|
+
type: "json-file",
|
|
4129
|
+
required: true,
|
|
4130
|
+
help: "The key of a service account with the Vertex AI User role in the project."
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
name: "projectId",
|
|
4134
|
+
label: "Project ID",
|
|
4135
|
+
type: "text",
|
|
4136
|
+
required: false,
|
|
4137
|
+
help: "The Google Cloud project to run in. Empty: the service account's own project."
|
|
4138
|
+
},
|
|
4139
|
+
{
|
|
4140
|
+
name: "location",
|
|
4141
|
+
label: "Region",
|
|
4142
|
+
type: "text",
|
|
4143
|
+
required: true,
|
|
4144
|
+
default: "us-central1",
|
|
4145
|
+
help: "A Vertex AI region that serves the Gemini Live API, e.g. us-central1."
|
|
4146
|
+
}
|
|
4147
|
+
]
|
|
4148
|
+
}
|
|
4149
|
+
],
|
|
4150
|
+
knownModels: [],
|
|
4151
|
+
supportsModelListing: false,
|
|
4152
|
+
docsUrl: "https://ai.google.dev/gemini-api/docs/live",
|
|
4153
|
+
credentialOnly: true,
|
|
4154
|
+
category: "s2s"
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
// src/vendors/xai-s2s.ts
|
|
4158
|
+
var xaiS2sManifest = {
|
|
4159
|
+
vendor: "xai_s2s",
|
|
4160
|
+
displayName: "xAI Grok Voice",
|
|
4161
|
+
authKinds: [
|
|
4162
|
+
{
|
|
4163
|
+
kind: "apiKey",
|
|
4164
|
+
displayName: "API Key",
|
|
4165
|
+
fields: [
|
|
4166
|
+
{
|
|
4167
|
+
name: "apiKey",
|
|
4168
|
+
label: "API Key",
|
|
4169
|
+
type: "password",
|
|
4170
|
+
required: true,
|
|
4171
|
+
help: "An xAI API key (console.x.ai: API Keys)."
|
|
4172
|
+
}
|
|
4173
|
+
]
|
|
4174
|
+
}
|
|
4175
|
+
],
|
|
4176
|
+
knownModels: [],
|
|
4177
|
+
supportsModelListing: false,
|
|
4178
|
+
docsUrl: "https://docs.x.ai/docs/guides/voice/agent",
|
|
4179
|
+
credentialOnly: true,
|
|
4180
|
+
category: "s2s"
|
|
4181
|
+
};
|
|
4182
|
+
|
|
4183
|
+
// src/vendors/qwen-s2s.ts
|
|
4184
|
+
var qwenS2sManifest = {
|
|
4185
|
+
vendor: "qwen_s2s",
|
|
4186
|
+
displayName: "Qwen Omni Realtime",
|
|
4187
|
+
authKinds: [
|
|
4188
|
+
{
|
|
4189
|
+
kind: "apiKey",
|
|
4190
|
+
displayName: "API Key",
|
|
4191
|
+
fields: [
|
|
4192
|
+
{
|
|
4193
|
+
name: "apiKey",
|
|
4194
|
+
label: "API Key",
|
|
4195
|
+
type: "password",
|
|
4196
|
+
required: true,
|
|
4197
|
+
help: "A Model Studio (DashScope) API key."
|
|
4198
|
+
},
|
|
4199
|
+
{
|
|
4200
|
+
name: "host",
|
|
4201
|
+
label: "Workspace host",
|
|
4202
|
+
type: "text",
|
|
4203
|
+
required: true,
|
|
4204
|
+
help: "The realtime host of the workspace the key belongs to, e.g. ws-xxxx.ap-southeast-1.maas.aliyuncs.com, or dashscope-intl.aliyuncs.com for the international default. A full URL is accepted; only the host is used."
|
|
4205
|
+
}
|
|
4206
|
+
]
|
|
4207
|
+
}
|
|
4208
|
+
],
|
|
4209
|
+
knownModels: [],
|
|
4210
|
+
supportsModelListing: false,
|
|
4211
|
+
docsUrl: "https://www.alibabacloud.com/help/en/model-studio/realtime",
|
|
4212
|
+
credentialOnly: true,
|
|
4213
|
+
category: "s2s"
|
|
4214
|
+
};
|
|
4215
|
+
|
|
4216
|
+
// src/vendors/assemblyai-s2s.ts
|
|
4217
|
+
var assemblyaiS2sManifest = {
|
|
4218
|
+
vendor: "assemblyai_s2s",
|
|
4219
|
+
displayName: "AssemblyAI Voice Agent",
|
|
4220
|
+
authKinds: [
|
|
4221
|
+
{
|
|
4222
|
+
kind: "apiKey",
|
|
4223
|
+
displayName: "API Key",
|
|
4224
|
+
fields: [
|
|
4225
|
+
{
|
|
4226
|
+
name: "apiKey",
|
|
4227
|
+
label: "API Key",
|
|
4228
|
+
type: "password",
|
|
4229
|
+
required: true,
|
|
4230
|
+
help: "An AssemblyAI API key (assemblyai.com dashboard: API Keys)."
|
|
4231
|
+
}
|
|
4232
|
+
]
|
|
4233
|
+
}
|
|
4234
|
+
],
|
|
4235
|
+
knownModels: [],
|
|
4236
|
+
supportsModelListing: false,
|
|
4237
|
+
docsUrl: "https://www.assemblyai.com/docs",
|
|
4238
|
+
credentialOnly: true,
|
|
4239
|
+
category: "s2s"
|
|
4240
|
+
};
|
|
4241
|
+
|
|
4242
|
+
// src/vendors/voicelive-s2s.ts
|
|
4243
|
+
var voiceliveS2sManifest = {
|
|
4244
|
+
vendor: "voicelive_s2s",
|
|
4245
|
+
displayName: "Azure Voice Live",
|
|
4246
|
+
authKinds: [
|
|
4247
|
+
{
|
|
4248
|
+
kind: "apiKey",
|
|
4249
|
+
displayName: "API Key",
|
|
4250
|
+
fields: [
|
|
4251
|
+
{
|
|
4252
|
+
name: "apiKey",
|
|
4253
|
+
label: "API Key",
|
|
4254
|
+
type: "password",
|
|
4255
|
+
required: true,
|
|
4256
|
+
help: "A key of the Azure AI Foundry (AI Services) resource: Keys and Endpoint."
|
|
4257
|
+
},
|
|
4258
|
+
{
|
|
4259
|
+
name: "host",
|
|
4260
|
+
label: "Resource host",
|
|
4261
|
+
type: "text",
|
|
4262
|
+
required: true,
|
|
4263
|
+
help: "The resource host, e.g. my-resource.services.ai.azure.com. A full endpoint URL is accepted; only the host is used."
|
|
4264
|
+
}
|
|
4265
|
+
]
|
|
4266
|
+
}
|
|
4267
|
+
],
|
|
4268
|
+
knownModels: [],
|
|
4269
|
+
supportsModelListing: false,
|
|
4270
|
+
docsUrl: "https://learn.microsoft.com/azure/ai-services/speech-service/voice-live",
|
|
4271
|
+
credentialOnly: true,
|
|
4272
|
+
category: "s2s"
|
|
4273
|
+
};
|
|
4274
|
+
|
|
4275
|
+
// src/vendors/azure-openai-s2s.ts
|
|
4276
|
+
var azureOpenaiS2sManifest = {
|
|
4277
|
+
vendor: "azure_openai_s2s",
|
|
4278
|
+
displayName: "Azure OpenAI Realtime",
|
|
4279
|
+
authKinds: [
|
|
4280
|
+
{
|
|
4281
|
+
kind: "apiKey",
|
|
4282
|
+
displayName: "API Key",
|
|
4283
|
+
fields: [
|
|
4284
|
+
{
|
|
4285
|
+
name: "apiKey",
|
|
4286
|
+
label: "API Key",
|
|
4287
|
+
type: "password",
|
|
4288
|
+
required: true,
|
|
4289
|
+
help: "A key of the Azure OpenAI resource: Keys and Endpoint."
|
|
4290
|
+
},
|
|
4291
|
+
{
|
|
4292
|
+
name: "host",
|
|
4293
|
+
label: "Resource host",
|
|
4294
|
+
type: "text",
|
|
4295
|
+
required: true,
|
|
4296
|
+
help: "The resource host, e.g. my-resource.openai.azure.com. A full endpoint URL is accepted; only the host is used."
|
|
4297
|
+
}
|
|
4298
|
+
]
|
|
4299
|
+
}
|
|
4300
|
+
],
|
|
4301
|
+
knownModels: [],
|
|
4302
|
+
supportsModelListing: false,
|
|
4303
|
+
docsUrl: "https://learn.microsoft.com/azure/ai-foundry/openai/how-to/realtime-audio-websockets",
|
|
4304
|
+
credentialOnly: true,
|
|
4305
|
+
category: "s2s"
|
|
4306
|
+
};
|
|
4307
|
+
|
|
4308
|
+
// src/vendors/nova-s2s.ts
|
|
4309
|
+
var novaS2sManifest = {
|
|
4310
|
+
vendor: "nova_s2s",
|
|
4311
|
+
displayName: "Amazon Nova Sonic",
|
|
4312
|
+
authKinds: [
|
|
4313
|
+
{
|
|
4314
|
+
kind: "bedrockIam",
|
|
4315
|
+
displayName: "IAM Credentials",
|
|
4316
|
+
fields: [
|
|
4317
|
+
{
|
|
4318
|
+
name: "accessKeyId",
|
|
4319
|
+
label: "Access Key ID",
|
|
4320
|
+
type: "text",
|
|
4321
|
+
required: true,
|
|
4322
|
+
help: "An IAM user access key allowed bedrock:InvokeModelWithBidirectionalStream on the Nova Sonic model."
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
name: "secretAccessKey",
|
|
4326
|
+
label: "Secret Access Key",
|
|
4327
|
+
type: "password",
|
|
4328
|
+
required: true
|
|
4329
|
+
},
|
|
4330
|
+
{
|
|
4331
|
+
name: "region",
|
|
4332
|
+
label: "Region",
|
|
4333
|
+
type: "text",
|
|
4334
|
+
required: true,
|
|
4335
|
+
default: "us-east-1",
|
|
4336
|
+
help: "A Bedrock region where Nova Sonic is enabled for the account, e.g. us-east-1."
|
|
4337
|
+
}
|
|
4338
|
+
]
|
|
4339
|
+
}
|
|
4340
|
+
],
|
|
4341
|
+
knownModels: [],
|
|
4342
|
+
supportsModelListing: false,
|
|
4343
|
+
docsUrl: "https://docs.aws.amazon.com/nova/latest/userguide/speech.html",
|
|
4344
|
+
credentialOnly: true,
|
|
4345
|
+
category: "s2s"
|
|
4346
|
+
};
|
|
4347
|
+
|
|
4348
|
+
// src/vendors/phonic-s2s.ts
|
|
4349
|
+
var phonicS2sManifest = {
|
|
4350
|
+
vendor: "phonic_s2s",
|
|
4351
|
+
displayName: "Phonic",
|
|
4352
|
+
authKinds: [
|
|
4353
|
+
{
|
|
4354
|
+
kind: "apiKey",
|
|
4355
|
+
displayName: "API Key",
|
|
4356
|
+
fields: [
|
|
4357
|
+
{
|
|
4358
|
+
name: "apiKey",
|
|
4359
|
+
label: "API Key",
|
|
4360
|
+
type: "password",
|
|
4361
|
+
required: true,
|
|
4362
|
+
help: "A Phonic API key (starts with ph_). Phonic uses the same keys for text-to-speech."
|
|
4363
|
+
}
|
|
4364
|
+
]
|
|
4365
|
+
}
|
|
4366
|
+
],
|
|
4367
|
+
knownModels: [],
|
|
4368
|
+
supportsModelListing: false,
|
|
4369
|
+
docsUrl: "https://docs.phonic.ai/docs/get-started/overview",
|
|
4370
|
+
credentialOnly: true,
|
|
4371
|
+
category: "s2s"
|
|
4372
|
+
};
|
|
4373
|
+
|
|
4103
4374
|
// src/adapters/index.ts
|
|
4104
4375
|
registerAdapter(openAIFactory);
|
|
4105
4376
|
registerAdapter(deepseekFactory);
|
|
@@ -4124,6 +4395,14 @@ registerCredentialVendor(gptliveS2sManifest);
|
|
|
4124
4395
|
registerCredentialVendor(ultravoxS2sManifest);
|
|
4125
4396
|
registerCredentialVendor(deepgramS2sManifest);
|
|
4126
4397
|
registerCredentialVendor(elevenlabsS2sManifest);
|
|
4398
|
+
registerCredentialVendor(googleS2sManifest);
|
|
4399
|
+
registerCredentialVendor(xaiS2sManifest);
|
|
4400
|
+
registerCredentialVendor(qwenS2sManifest);
|
|
4401
|
+
registerCredentialVendor(assemblyaiS2sManifest);
|
|
4402
|
+
registerCredentialVendor(voiceliveS2sManifest);
|
|
4403
|
+
registerCredentialVendor(azureOpenaiS2sManifest);
|
|
4404
|
+
registerCredentialVendor(novaS2sManifest);
|
|
4405
|
+
registerCredentialVendor(phonicS2sManifest);
|
|
4127
4406
|
registerCredentialVendor(dialogflowCesManifest);
|
|
4128
4407
|
|
|
4129
4408
|
// src/index.ts
|