@jambonz/llm 0.6.14 → 0.6.15

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 CHANGED
@@ -4124,6 +4124,251 @@ var elevenlabsS2sManifest = {
4124
4124
  category: "s2s"
4125
4125
  };
4126
4126
 
4127
+ // src/vendors/google-s2s.ts
4128
+ var googleS2sManifest = {
4129
+ vendor: "google_s2s",
4130
+ displayName: "Google Gemini Live",
4131
+ authKinds: [
4132
+ {
4133
+ kind: "googleApiKey",
4134
+ displayName: "API Key (Gemini Developer API)",
4135
+ fields: [
4136
+ {
4137
+ name: "apiKey",
4138
+ label: "API Key",
4139
+ type: "password",
4140
+ required: true,
4141
+ help: "A Gemini API key from https://aistudio.google.com/apikey"
4142
+ }
4143
+ ]
4144
+ },
4145
+ {
4146
+ kind: "vertexServiceAccount",
4147
+ displayName: "Service Account JSON (Vertex AI)",
4148
+ fields: [
4149
+ {
4150
+ name: "credentials",
4151
+ label: "Service Account Key (JSON)",
4152
+ type: "json-file",
4153
+ required: true,
4154
+ help: "The key of a service account with the Vertex AI User role in the project."
4155
+ },
4156
+ {
4157
+ name: "projectId",
4158
+ label: "Project ID",
4159
+ type: "text",
4160
+ required: false,
4161
+ help: "The Google Cloud project to run in. Empty: the service account's own project."
4162
+ },
4163
+ {
4164
+ name: "location",
4165
+ label: "Region",
4166
+ type: "text",
4167
+ required: true,
4168
+ default: "us-central1",
4169
+ help: "A Vertex AI region that serves the Gemini Live API, e.g. us-central1."
4170
+ }
4171
+ ]
4172
+ }
4173
+ ],
4174
+ knownModels: [],
4175
+ supportsModelListing: false,
4176
+ docsUrl: "https://ai.google.dev/gemini-api/docs/live",
4177
+ credentialOnly: true,
4178
+ category: "s2s"
4179
+ };
4180
+
4181
+ // src/vendors/xai-s2s.ts
4182
+ var xaiS2sManifest = {
4183
+ vendor: "xai_s2s",
4184
+ displayName: "xAI Grok Voice",
4185
+ authKinds: [
4186
+ {
4187
+ kind: "apiKey",
4188
+ displayName: "API Key",
4189
+ fields: [
4190
+ {
4191
+ name: "apiKey",
4192
+ label: "API Key",
4193
+ type: "password",
4194
+ required: true,
4195
+ help: "An xAI API key (console.x.ai: API Keys)."
4196
+ }
4197
+ ]
4198
+ }
4199
+ ],
4200
+ knownModels: [],
4201
+ supportsModelListing: false,
4202
+ docsUrl: "https://docs.x.ai/docs/guides/voice/agent",
4203
+ credentialOnly: true,
4204
+ category: "s2s"
4205
+ };
4206
+
4207
+ // src/vendors/qwen-s2s.ts
4208
+ var qwenS2sManifest = {
4209
+ vendor: "qwen_s2s",
4210
+ displayName: "Qwen Omni Realtime",
4211
+ authKinds: [
4212
+ {
4213
+ kind: "apiKey",
4214
+ displayName: "API Key",
4215
+ fields: [
4216
+ {
4217
+ name: "apiKey",
4218
+ label: "API Key",
4219
+ type: "password",
4220
+ required: true,
4221
+ help: "A Model Studio (DashScope) API key."
4222
+ },
4223
+ {
4224
+ name: "host",
4225
+ label: "Workspace host",
4226
+ type: "text",
4227
+ required: true,
4228
+ 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."
4229
+ }
4230
+ ]
4231
+ }
4232
+ ],
4233
+ knownModels: [],
4234
+ supportsModelListing: false,
4235
+ docsUrl: "https://www.alibabacloud.com/help/en/model-studio/realtime",
4236
+ credentialOnly: true,
4237
+ category: "s2s"
4238
+ };
4239
+
4240
+ // src/vendors/assemblyai-s2s.ts
4241
+ var assemblyaiS2sManifest = {
4242
+ vendor: "assemblyai_s2s",
4243
+ displayName: "AssemblyAI Voice Agent",
4244
+ authKinds: [
4245
+ {
4246
+ kind: "apiKey",
4247
+ displayName: "API Key",
4248
+ fields: [
4249
+ {
4250
+ name: "apiKey",
4251
+ label: "API Key",
4252
+ type: "password",
4253
+ required: true,
4254
+ help: "An AssemblyAI API key (assemblyai.com dashboard: API Keys)."
4255
+ }
4256
+ ]
4257
+ }
4258
+ ],
4259
+ knownModels: [],
4260
+ supportsModelListing: false,
4261
+ docsUrl: "https://www.assemblyai.com/docs",
4262
+ credentialOnly: true,
4263
+ category: "s2s"
4264
+ };
4265
+
4266
+ // src/vendors/voicelive-s2s.ts
4267
+ var voiceliveS2sManifest = {
4268
+ vendor: "voicelive_s2s",
4269
+ displayName: "Azure Voice Live",
4270
+ authKinds: [
4271
+ {
4272
+ kind: "apiKey",
4273
+ displayName: "API Key",
4274
+ fields: [
4275
+ {
4276
+ name: "apiKey",
4277
+ label: "API Key",
4278
+ type: "password",
4279
+ required: true,
4280
+ help: "A key of the Azure AI Foundry (AI Services) resource: Keys and Endpoint."
4281
+ },
4282
+ {
4283
+ name: "host",
4284
+ label: "Resource host",
4285
+ type: "text",
4286
+ required: true,
4287
+ help: "The resource host, e.g. my-resource.services.ai.azure.com. A full endpoint URL is accepted; only the host is used."
4288
+ }
4289
+ ]
4290
+ }
4291
+ ],
4292
+ knownModels: [],
4293
+ supportsModelListing: false,
4294
+ docsUrl: "https://learn.microsoft.com/azure/ai-services/speech-service/voice-live",
4295
+ credentialOnly: true,
4296
+ category: "s2s"
4297
+ };
4298
+
4299
+ // src/vendors/azure-openai-s2s.ts
4300
+ var azureOpenaiS2sManifest = {
4301
+ vendor: "azure_openai_s2s",
4302
+ displayName: "Azure OpenAI Realtime",
4303
+ authKinds: [
4304
+ {
4305
+ kind: "apiKey",
4306
+ displayName: "API Key",
4307
+ fields: [
4308
+ {
4309
+ name: "apiKey",
4310
+ label: "API Key",
4311
+ type: "password",
4312
+ required: true,
4313
+ help: "A key of the Azure OpenAI resource: Keys and Endpoint."
4314
+ },
4315
+ {
4316
+ name: "host",
4317
+ label: "Resource host",
4318
+ type: "text",
4319
+ required: true,
4320
+ help: "The resource host, e.g. my-resource.openai.azure.com. A full endpoint URL is accepted; only the host is used."
4321
+ }
4322
+ ]
4323
+ }
4324
+ ],
4325
+ knownModels: [],
4326
+ supportsModelListing: false,
4327
+ docsUrl: "https://learn.microsoft.com/azure/ai-foundry/openai/how-to/realtime-audio-websockets",
4328
+ credentialOnly: true,
4329
+ category: "s2s"
4330
+ };
4331
+
4332
+ // src/vendors/nova-s2s.ts
4333
+ var novaS2sManifest = {
4334
+ vendor: "nova_s2s",
4335
+ displayName: "Amazon Nova Sonic",
4336
+ authKinds: [
4337
+ {
4338
+ kind: "bedrockIam",
4339
+ displayName: "IAM Credentials",
4340
+ fields: [
4341
+ {
4342
+ name: "accessKeyId",
4343
+ label: "Access Key ID",
4344
+ type: "text",
4345
+ required: true,
4346
+ help: "An IAM user access key allowed bedrock:InvokeModelWithBidirectionalStream on the Nova Sonic model."
4347
+ },
4348
+ {
4349
+ name: "secretAccessKey",
4350
+ label: "Secret Access Key",
4351
+ type: "password",
4352
+ required: true
4353
+ },
4354
+ {
4355
+ name: "region",
4356
+ label: "Region",
4357
+ type: "text",
4358
+ required: true,
4359
+ default: "us-east-1",
4360
+ help: "A Bedrock region where Nova Sonic is enabled for the account, e.g. us-east-1."
4361
+ }
4362
+ ]
4363
+ }
4364
+ ],
4365
+ knownModels: [],
4366
+ supportsModelListing: false,
4367
+ docsUrl: "https://docs.aws.amazon.com/nova/latest/userguide/speech.html",
4368
+ credentialOnly: true,
4369
+ category: "s2s"
4370
+ };
4371
+
4127
4372
  // src/adapters/index.ts
4128
4373
  registerAdapter(openAIFactory);
4129
4374
  registerAdapter(deepseekFactory);
@@ -4148,6 +4393,13 @@ registerCredentialVendor(gptliveS2sManifest);
4148
4393
  registerCredentialVendor(ultravoxS2sManifest);
4149
4394
  registerCredentialVendor(deepgramS2sManifest);
4150
4395
  registerCredentialVendor(elevenlabsS2sManifest);
4396
+ registerCredentialVendor(googleS2sManifest);
4397
+ registerCredentialVendor(xaiS2sManifest);
4398
+ registerCredentialVendor(qwenS2sManifest);
4399
+ registerCredentialVendor(assemblyaiS2sManifest);
4400
+ registerCredentialVendor(voiceliveS2sManifest);
4401
+ registerCredentialVendor(azureOpenaiS2sManifest);
4402
+ registerCredentialVendor(novaS2sManifest);
4151
4403
  registerCredentialVendor(dialogflowCesManifest);
4152
4404
 
4153
4405
  // src/normalize-auth.ts
@@ -4331,6 +4583,15 @@ function pickAuthKind(vendor, raw) {
4331
4583
  `pickAuthKind: google credential missing both 'api_key' and 'service_key'`
4332
4584
  );
4333
4585
  }
4586
+ case "google_s2s": {
4587
+ const svc = authKinds.find((k) => k.kind === "vertexServiceAccount");
4588
+ const apiKey = authKinds.find((k) => k.kind === "googleApiKey");
4589
+ if (raw.service_key && svc) return svc;
4590
+ if (raw.api_key && apiKey) return apiKey;
4591
+ throw new Error(
4592
+ `pickAuthKind: google_s2s credential missing both 'api_key' and 'service_key'`
4593
+ );
4594
+ }
4334
4595
  default:
4335
4596
  throw new Error(
4336
4597
  `pickAuthKind: vendor '${vendor}' declares ${authKinds.length} authKinds but has no discriminator rule. Add one in src/pick-auth-kind.ts.`