@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 +261 -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 +261 -0
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +252 -0
- package/dist/test-kit/index.cjs.map +1 -1
- package/dist/test-kit/index.js +252 -0
- package/dist/test-kit/index.js.map +1 -1
- package/package.json +1 -1
package/dist/test-kit/index.js
CHANGED
|
@@ -4067,6 +4067,251 @@ var elevenlabsS2sManifest = {
|
|
|
4067
4067
|
category: "s2s"
|
|
4068
4068
|
};
|
|
4069
4069
|
|
|
4070
|
+
// src/vendors/google-s2s.ts
|
|
4071
|
+
var googleS2sManifest = {
|
|
4072
|
+
vendor: "google_s2s",
|
|
4073
|
+
displayName: "Google Gemini Live",
|
|
4074
|
+
authKinds: [
|
|
4075
|
+
{
|
|
4076
|
+
kind: "googleApiKey",
|
|
4077
|
+
displayName: "API Key (Gemini Developer API)",
|
|
4078
|
+
fields: [
|
|
4079
|
+
{
|
|
4080
|
+
name: "apiKey",
|
|
4081
|
+
label: "API Key",
|
|
4082
|
+
type: "password",
|
|
4083
|
+
required: true,
|
|
4084
|
+
help: "A Gemini API key from https://aistudio.google.com/apikey"
|
|
4085
|
+
}
|
|
4086
|
+
]
|
|
4087
|
+
},
|
|
4088
|
+
{
|
|
4089
|
+
kind: "vertexServiceAccount",
|
|
4090
|
+
displayName: "Service Account JSON (Vertex AI)",
|
|
4091
|
+
fields: [
|
|
4092
|
+
{
|
|
4093
|
+
name: "credentials",
|
|
4094
|
+
label: "Service Account Key (JSON)",
|
|
4095
|
+
type: "json-file",
|
|
4096
|
+
required: true,
|
|
4097
|
+
help: "The key of a service account with the Vertex AI User role in the project."
|
|
4098
|
+
},
|
|
4099
|
+
{
|
|
4100
|
+
name: "projectId",
|
|
4101
|
+
label: "Project ID",
|
|
4102
|
+
type: "text",
|
|
4103
|
+
required: false,
|
|
4104
|
+
help: "The Google Cloud project to run in. Empty: the service account's own project."
|
|
4105
|
+
},
|
|
4106
|
+
{
|
|
4107
|
+
name: "location",
|
|
4108
|
+
label: "Region",
|
|
4109
|
+
type: "text",
|
|
4110
|
+
required: true,
|
|
4111
|
+
default: "us-central1",
|
|
4112
|
+
help: "A Vertex AI region that serves the Gemini Live API, e.g. us-central1."
|
|
4113
|
+
}
|
|
4114
|
+
]
|
|
4115
|
+
}
|
|
4116
|
+
],
|
|
4117
|
+
knownModels: [],
|
|
4118
|
+
supportsModelListing: false,
|
|
4119
|
+
docsUrl: "https://ai.google.dev/gemini-api/docs/live",
|
|
4120
|
+
credentialOnly: true,
|
|
4121
|
+
category: "s2s"
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
// src/vendors/xai-s2s.ts
|
|
4125
|
+
var xaiS2sManifest = {
|
|
4126
|
+
vendor: "xai_s2s",
|
|
4127
|
+
displayName: "xAI Grok Voice",
|
|
4128
|
+
authKinds: [
|
|
4129
|
+
{
|
|
4130
|
+
kind: "apiKey",
|
|
4131
|
+
displayName: "API Key",
|
|
4132
|
+
fields: [
|
|
4133
|
+
{
|
|
4134
|
+
name: "apiKey",
|
|
4135
|
+
label: "API Key",
|
|
4136
|
+
type: "password",
|
|
4137
|
+
required: true,
|
|
4138
|
+
help: "An xAI API key (console.x.ai: API Keys)."
|
|
4139
|
+
}
|
|
4140
|
+
]
|
|
4141
|
+
}
|
|
4142
|
+
],
|
|
4143
|
+
knownModels: [],
|
|
4144
|
+
supportsModelListing: false,
|
|
4145
|
+
docsUrl: "https://docs.x.ai/docs/guides/voice/agent",
|
|
4146
|
+
credentialOnly: true,
|
|
4147
|
+
category: "s2s"
|
|
4148
|
+
};
|
|
4149
|
+
|
|
4150
|
+
// src/vendors/qwen-s2s.ts
|
|
4151
|
+
var qwenS2sManifest = {
|
|
4152
|
+
vendor: "qwen_s2s",
|
|
4153
|
+
displayName: "Qwen Omni Realtime",
|
|
4154
|
+
authKinds: [
|
|
4155
|
+
{
|
|
4156
|
+
kind: "apiKey",
|
|
4157
|
+
displayName: "API Key",
|
|
4158
|
+
fields: [
|
|
4159
|
+
{
|
|
4160
|
+
name: "apiKey",
|
|
4161
|
+
label: "API Key",
|
|
4162
|
+
type: "password",
|
|
4163
|
+
required: true,
|
|
4164
|
+
help: "A Model Studio (DashScope) API key."
|
|
4165
|
+
},
|
|
4166
|
+
{
|
|
4167
|
+
name: "host",
|
|
4168
|
+
label: "Workspace host",
|
|
4169
|
+
type: "text",
|
|
4170
|
+
required: true,
|
|
4171
|
+
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."
|
|
4172
|
+
}
|
|
4173
|
+
]
|
|
4174
|
+
}
|
|
4175
|
+
],
|
|
4176
|
+
knownModels: [],
|
|
4177
|
+
supportsModelListing: false,
|
|
4178
|
+
docsUrl: "https://www.alibabacloud.com/help/en/model-studio/realtime",
|
|
4179
|
+
credentialOnly: true,
|
|
4180
|
+
category: "s2s"
|
|
4181
|
+
};
|
|
4182
|
+
|
|
4183
|
+
// src/vendors/assemblyai-s2s.ts
|
|
4184
|
+
var assemblyaiS2sManifest = {
|
|
4185
|
+
vendor: "assemblyai_s2s",
|
|
4186
|
+
displayName: "AssemblyAI Voice Agent",
|
|
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: "An AssemblyAI API key (assemblyai.com dashboard: API Keys)."
|
|
4198
|
+
}
|
|
4199
|
+
]
|
|
4200
|
+
}
|
|
4201
|
+
],
|
|
4202
|
+
knownModels: [],
|
|
4203
|
+
supportsModelListing: false,
|
|
4204
|
+
docsUrl: "https://www.assemblyai.com/docs",
|
|
4205
|
+
credentialOnly: true,
|
|
4206
|
+
category: "s2s"
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4209
|
+
// src/vendors/voicelive-s2s.ts
|
|
4210
|
+
var voiceliveS2sManifest = {
|
|
4211
|
+
vendor: "voicelive_s2s",
|
|
4212
|
+
displayName: "Azure Voice Live",
|
|
4213
|
+
authKinds: [
|
|
4214
|
+
{
|
|
4215
|
+
kind: "apiKey",
|
|
4216
|
+
displayName: "API Key",
|
|
4217
|
+
fields: [
|
|
4218
|
+
{
|
|
4219
|
+
name: "apiKey",
|
|
4220
|
+
label: "API Key",
|
|
4221
|
+
type: "password",
|
|
4222
|
+
required: true,
|
|
4223
|
+
help: "A key of the Azure AI Foundry (AI Services) resource: Keys and Endpoint."
|
|
4224
|
+
},
|
|
4225
|
+
{
|
|
4226
|
+
name: "host",
|
|
4227
|
+
label: "Resource host",
|
|
4228
|
+
type: "text",
|
|
4229
|
+
required: true,
|
|
4230
|
+
help: "The resource host, e.g. my-resource.services.ai.azure.com. A full endpoint URL is accepted; only the host is used."
|
|
4231
|
+
}
|
|
4232
|
+
]
|
|
4233
|
+
}
|
|
4234
|
+
],
|
|
4235
|
+
knownModels: [],
|
|
4236
|
+
supportsModelListing: false,
|
|
4237
|
+
docsUrl: "https://learn.microsoft.com/azure/ai-services/speech-service/voice-live",
|
|
4238
|
+
credentialOnly: true,
|
|
4239
|
+
category: "s2s"
|
|
4240
|
+
};
|
|
4241
|
+
|
|
4242
|
+
// src/vendors/azure-openai-s2s.ts
|
|
4243
|
+
var azureOpenaiS2sManifest = {
|
|
4244
|
+
vendor: "azure_openai_s2s",
|
|
4245
|
+
displayName: "Azure OpenAI Realtime",
|
|
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 OpenAI 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.openai.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-foundry/openai/how-to/realtime-audio-websockets",
|
|
4271
|
+
credentialOnly: true,
|
|
4272
|
+
category: "s2s"
|
|
4273
|
+
};
|
|
4274
|
+
|
|
4275
|
+
// src/vendors/nova-s2s.ts
|
|
4276
|
+
var novaS2sManifest = {
|
|
4277
|
+
vendor: "nova_s2s",
|
|
4278
|
+
displayName: "Amazon Nova Sonic",
|
|
4279
|
+
authKinds: [
|
|
4280
|
+
{
|
|
4281
|
+
kind: "bedrockIam",
|
|
4282
|
+
displayName: "IAM Credentials",
|
|
4283
|
+
fields: [
|
|
4284
|
+
{
|
|
4285
|
+
name: "accessKeyId",
|
|
4286
|
+
label: "Access Key ID",
|
|
4287
|
+
type: "text",
|
|
4288
|
+
required: true,
|
|
4289
|
+
help: "An IAM user access key allowed bedrock:InvokeModelWithBidirectionalStream on the Nova Sonic model."
|
|
4290
|
+
},
|
|
4291
|
+
{
|
|
4292
|
+
name: "secretAccessKey",
|
|
4293
|
+
label: "Secret Access Key",
|
|
4294
|
+
type: "password",
|
|
4295
|
+
required: true
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
name: "region",
|
|
4299
|
+
label: "Region",
|
|
4300
|
+
type: "text",
|
|
4301
|
+
required: true,
|
|
4302
|
+
default: "us-east-1",
|
|
4303
|
+
help: "A Bedrock region where Nova Sonic is enabled for the account, e.g. us-east-1."
|
|
4304
|
+
}
|
|
4305
|
+
]
|
|
4306
|
+
}
|
|
4307
|
+
],
|
|
4308
|
+
knownModels: [],
|
|
4309
|
+
supportsModelListing: false,
|
|
4310
|
+
docsUrl: "https://docs.aws.amazon.com/nova/latest/userguide/speech.html",
|
|
4311
|
+
credentialOnly: true,
|
|
4312
|
+
category: "s2s"
|
|
4313
|
+
};
|
|
4314
|
+
|
|
4070
4315
|
// src/adapters/index.ts
|
|
4071
4316
|
registerAdapter(openAIFactory);
|
|
4072
4317
|
registerAdapter(deepseekFactory);
|
|
@@ -4091,6 +4336,13 @@ registerCredentialVendor(gptliveS2sManifest);
|
|
|
4091
4336
|
registerCredentialVendor(ultravoxS2sManifest);
|
|
4092
4337
|
registerCredentialVendor(deepgramS2sManifest);
|
|
4093
4338
|
registerCredentialVendor(elevenlabsS2sManifest);
|
|
4339
|
+
registerCredentialVendor(googleS2sManifest);
|
|
4340
|
+
registerCredentialVendor(xaiS2sManifest);
|
|
4341
|
+
registerCredentialVendor(qwenS2sManifest);
|
|
4342
|
+
registerCredentialVendor(assemblyaiS2sManifest);
|
|
4343
|
+
registerCredentialVendor(voiceliveS2sManifest);
|
|
4344
|
+
registerCredentialVendor(azureOpenaiS2sManifest);
|
|
4345
|
+
registerCredentialVendor(novaS2sManifest);
|
|
4094
4346
|
registerCredentialVendor(dialogflowCesManifest);
|
|
4095
4347
|
|
|
4096
4348
|
// src/index.ts
|