hume 0.10.0 → 0.10.1
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/.mock/definition/empathic-voice/__package__.yml +151 -224
- package/.mock/definition/empathic-voice/chatGroups.yml +4 -4
- package/.mock/definition/empathic-voice/chats.yml +3 -3
- package/.mock/definition/empathic-voice/configs.yml +17 -17
- package/.mock/definition/empathic-voice/customVoices.yml +6 -6
- package/.mock/definition/empathic-voice/prompts.yml +9 -9
- package/.mock/definition/empathic-voice/tools.yml +9 -9
- package/.mock/definition/tts/__package__.yml +32 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.js +11 -11
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -1
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.d.ts → LanguageModelType.d.ts} +3 -6
- package/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.js → LanguageModelType.js} +3 -3
- package/api/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -5
- package/{dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → api/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
- package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -2
- package/api/resources/empathicVoice/types/index.d.ts +6 -8
- package/api/resources/empathicVoice/types/index.js +6 -8
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/tts/client/Client.js +4 -4
- package/api/resources/tts/resources/voices/client/Client.js +3 -3
- package/api/resources/tts/types/PostedTts.d.ts +7 -0
- package/api/resources/tts/types/SnippetAudioChunk.d.ts +6 -2
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +11 -11
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.d.ts → LanguageModelType.d.ts} +3 -6
- package/dist/api/resources/empathicVoice/types/{ReturnLanguageModelModelResource.js → LanguageModelType.js} +3 -3
- package/dist/api/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -5
- package/{api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → dist/api/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
- package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/index.d.ts +6 -8
- package/dist/api/resources/empathicVoice/types/index.js +6 -8
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/tts/client/Client.js +4 -4
- package/dist/api/resources/tts/resources/voices/client/Client.js +3 -3
- package/dist/api/resources/tts/types/PostedTts.d.ts +7 -0
- package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +6 -2
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +10 -0
- package/{serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js → dist/serialization/resources/empathicVoice/types/LanguageModelType.js} +3 -3
- package/dist/serialization/resources/empathicVoice/types/{PostedLanguageModelModelProvider.d.ts → ModelProviderEnum.d.ts} +2 -2
- package/dist/serialization/resources/empathicVoice/types/{ReturnLanguageModelModelProvider.js → ModelProviderEnum.js} +2 -2
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +6 -8
- package/dist/serialization/resources/empathicVoice/types/index.js +6 -8
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +1 -0
- package/dist/serialization/resources/tts/types/PostedTts.js +1 -0
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +2 -2
- package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +10 -0
- package/{dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js → serialization/resources/empathicVoice/types/LanguageModelType.js} +3 -3
- package/{dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts → serialization/resources/empathicVoice/types/ModelProviderEnum.d.ts} +2 -2
- package/{dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js → serialization/resources/empathicVoice/types/ModelProviderEnum.js} +2 -2
- package/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +4 -4
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +4 -4
- package/serialization/resources/empathicVoice/types/index.d.ts +6 -8
- package/serialization/resources/empathicVoice/types/index.js +6 -8
- package/serialization/resources/tts/types/PostedTts.d.ts +1 -0
- package/serialization/resources/tts/types/PostedTts.js +1 -0
- package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +2 -0
- package/serialization/resources/tts/types/SnippetAudioChunk.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -34
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -33
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -17
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -16
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -34
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -33
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -17
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -16
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -10
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -67
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +0 -50
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +0 -67
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelProvider.js +0 -50
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +0 -10
|
@@ -96,7 +96,7 @@ class Tools {
|
|
|
96
96
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
97
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/tools"),
|
|
98
98
|
method: "GET",
|
|
99
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
99
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
requestType: "json",
|
|
@@ -179,7 +179,7 @@ class Tools {
|
|
|
179
179
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
180
180
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/tools"),
|
|
181
181
|
method: "POST",
|
|
182
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
182
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
body: serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
@@ -260,7 +260,7 @@ class Tools {
|
|
|
260
260
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
261
261
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
262
262
|
method: "GET",
|
|
263
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
263
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
264
264
|
contentType: "application/json",
|
|
265
265
|
queryParameters: _queryParams,
|
|
266
266
|
requestType: "json",
|
|
@@ -343,7 +343,7 @@ class Tools {
|
|
|
343
343
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
344
344
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
345
345
|
method: "POST",
|
|
346
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
346
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
347
347
|
contentType: "application/json",
|
|
348
348
|
requestType: "json",
|
|
349
349
|
body: serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
@@ -411,7 +411,7 @@ class Tools {
|
|
|
411
411
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
412
412
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
413
413
|
method: "DELETE",
|
|
414
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
414
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
415
415
|
contentType: "application/json",
|
|
416
416
|
requestType: "json",
|
|
417
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -474,7 +474,7 @@ class Tools {
|
|
|
474
474
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
475
475
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
476
476
|
method: "PATCH",
|
|
477
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
477
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
requestType: "json",
|
|
480
480
|
body: serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
@@ -543,7 +543,7 @@ class Tools {
|
|
|
543
543
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
544
544
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
545
545
|
method: "GET",
|
|
546
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
546
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
547
547
|
contentType: "application/json",
|
|
548
548
|
requestType: "json",
|
|
549
549
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -613,7 +613,7 @@ class Tools {
|
|
|
613
613
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
614
614
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
615
615
|
method: "DELETE",
|
|
616
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
616
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
617
617
|
contentType: "application/json",
|
|
618
618
|
requestType: "json",
|
|
619
619
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -681,7 +681,7 @@ class Tools {
|
|
|
681
681
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
682
682
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
683
683
|
method: "PATCH",
|
|
684
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
684
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
685
685
|
contentType: "application/json",
|
|
686
686
|
requestType: "json",
|
|
687
687
|
body: serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type ReturnLanguageModelModelResource = "claude-3-7-sonnet" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "ellm" | "custom-language-model";
|
|
8
|
-
export declare const ReturnLanguageModelModelResource: {
|
|
9
|
-
readonly Claude37Sonnet: "claude-3-7-sonnet";
|
|
4
|
+
export type LanguageModelType = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "ellm" | "custom-language-model";
|
|
5
|
+
export declare const LanguageModelType: {
|
|
6
|
+
readonly Claude37SonnetLatest: "claude-3-7-sonnet-latest";
|
|
10
7
|
readonly Claude35SonnetLatest: "claude-3-5-sonnet-latest";
|
|
11
8
|
readonly Claude35HaikuLatest: "claude-3-5-haiku-latest";
|
|
12
9
|
readonly Claude35Sonnet20240620: "claude-3-5-sonnet-20240620";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
|
|
6
|
+
exports.LanguageModelType = void 0;
|
|
7
|
+
exports.LanguageModelType = {
|
|
8
|
+
Claude37SonnetLatest: "claude-3-7-sonnet-latest",
|
|
9
9
|
Claude35SonnetLatest: "claude-3-5-sonnet-latest",
|
|
10
10
|
Claude35HaikuLatest: "claude-3-5-haiku-latest",
|
|
11
11
|
Claude35Sonnet20240620: "claude-3-5-sonnet-20240620",
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export type PostedLanguageModelModelProvider = "GROQ" | "OPEN_AI" | "FIREWORKS" | "ANTHROPIC" | "CUSTOM_LANGUAGE_MODEL" | "GOOGLE" | "HUME_AI" | "AMAZON_BEDROCK";
|
|
8
|
-
export declare const PostedLanguageModelModelProvider: {
|
|
4
|
+
export type ModelProviderEnum = "GROQ" | "OPEN_AI" | "FIREWORKS" | "ANTHROPIC" | "CUSTOM_LANGUAGE_MODEL" | "GOOGLE" | "HUME_AI" | "AMAZON_BEDROCK";
|
|
5
|
+
export declare const ModelProviderEnum: {
|
|
9
6
|
readonly Groq: "GROQ";
|
|
10
7
|
readonly OpenAi: "OPEN_AI";
|
|
11
8
|
readonly Fireworks: "FIREWORKS";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.ModelProviderEnum = void 0;
|
|
7
|
+
exports.ModelProviderEnum = {
|
|
8
8
|
Groq: "GROQ",
|
|
9
9
|
OpenAi: "OPEN_AI",
|
|
10
10
|
Fireworks: "FIREWORKS",
|
|
@@ -7,9 +7,9 @@ import * as Hume from "../../../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface PostedLanguageModel {
|
|
9
9
|
/** The provider of the supplemental language model. */
|
|
10
|
-
modelProvider?: Hume.empathicVoice.
|
|
10
|
+
modelProvider?: Hume.empathicVoice.ModelProviderEnum;
|
|
11
11
|
/** String that specifies the language model to use with `model_provider`. */
|
|
12
|
-
modelResource?: Hume.empathicVoice.
|
|
12
|
+
modelResource?: Hume.empathicVoice.LanguageModelType;
|
|
13
13
|
/**
|
|
14
14
|
* The model temperature, with values between 0 to 1 (inclusive).
|
|
15
15
|
*
|
|
@@ -7,9 +7,9 @@ import * as Hume from "../../../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ReturnLanguageModel {
|
|
9
9
|
/** The provider of the supplemental language model. */
|
|
10
|
-
modelProvider?: Hume.empathicVoice.
|
|
10
|
+
modelProvider?: Hume.empathicVoice.ModelProviderEnum;
|
|
11
11
|
/** String that specifies the language model to use with `model_provider`. */
|
|
12
|
-
modelResource?: Hume.empathicVoice.
|
|
12
|
+
modelResource?: Hume.empathicVoice.LanguageModelType;
|
|
13
13
|
/**
|
|
14
14
|
* The model temperature, with values between 0 to 1 (inclusive).
|
|
15
15
|
*
|
|
@@ -36,6 +36,8 @@ export * from "./TtsInput";
|
|
|
36
36
|
export * from "./TextInput";
|
|
37
37
|
export * from "./FunctionCallResponseInput";
|
|
38
38
|
export * from "./HttpValidationError";
|
|
39
|
+
export * from "./LanguageModelType";
|
|
40
|
+
export * from "./ModelProviderEnum";
|
|
39
41
|
export * from "./ValidationErrorLocItem";
|
|
40
42
|
export * from "./ValidationError";
|
|
41
43
|
export * from "./WebhookEventBase";
|
|
@@ -77,10 +79,6 @@ export * from "./ReturnChatGroupPagedEvents";
|
|
|
77
79
|
export * from "./ReturnChatGroupPagedAudioReconstructionsPaginationDirection";
|
|
78
80
|
export * from "./ReturnChatGroupPagedAudioReconstructions";
|
|
79
81
|
export * from "./PostedConfigPromptSpec";
|
|
80
|
-
export * from "./PostedVoiceProvider";
|
|
81
|
-
export * from "./PostedVoice";
|
|
82
|
-
export * from "./PostedLanguageModelModelProvider";
|
|
83
|
-
export * from "./PostedLanguageModelModelResource";
|
|
84
82
|
export * from "./PostedLanguageModel";
|
|
85
83
|
export * from "./PostedEllmModel";
|
|
86
84
|
export * from "./PostedUserDefinedToolSpec";
|
|
@@ -92,10 +90,6 @@ export * from "./PostedTimeoutSpecsMaxDuration";
|
|
|
92
90
|
export * from "./PostedTimeoutSpecs";
|
|
93
91
|
export * from "./PostedWebhookEventType";
|
|
94
92
|
export * from "./PostedWebhookSpec";
|
|
95
|
-
export * from "./ReturnVoiceProvider";
|
|
96
|
-
export * from "./ReturnVoice";
|
|
97
|
-
export * from "./ReturnLanguageModelModelProvider";
|
|
98
|
-
export * from "./ReturnLanguageModelModelResource";
|
|
99
93
|
export * from "./ReturnLanguageModel";
|
|
100
94
|
export * from "./ReturnEllmModel";
|
|
101
95
|
export * from "./ReturnBuiltinToolToolType";
|
|
@@ -116,3 +110,7 @@ export * from "./PostedTimeoutSpec";
|
|
|
116
110
|
export * from "./ReturnEventMessageSpec";
|
|
117
111
|
export * from "./ReturnTimeoutSpec";
|
|
118
112
|
export * from "./PostedPromptSpec";
|
|
113
|
+
export * from "./PostedVoiceProvider";
|
|
114
|
+
export * from "./PostedVoice";
|
|
115
|
+
export * from "./ReturnVoiceProvider";
|
|
116
|
+
export * from "./ReturnVoice";
|
|
@@ -52,6 +52,8 @@ __exportStar(require("./TtsInput"), exports);
|
|
|
52
52
|
__exportStar(require("./TextInput"), exports);
|
|
53
53
|
__exportStar(require("./FunctionCallResponseInput"), exports);
|
|
54
54
|
__exportStar(require("./HttpValidationError"), exports);
|
|
55
|
+
__exportStar(require("./LanguageModelType"), exports);
|
|
56
|
+
__exportStar(require("./ModelProviderEnum"), exports);
|
|
55
57
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
56
58
|
__exportStar(require("./ValidationError"), exports);
|
|
57
59
|
__exportStar(require("./WebhookEventBase"), exports);
|
|
@@ -93,10 +95,6 @@ __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
|
|
|
93
95
|
__exportStar(require("./ReturnChatGroupPagedAudioReconstructionsPaginationDirection"), exports);
|
|
94
96
|
__exportStar(require("./ReturnChatGroupPagedAudioReconstructions"), exports);
|
|
95
97
|
__exportStar(require("./PostedConfigPromptSpec"), exports);
|
|
96
|
-
__exportStar(require("./PostedVoiceProvider"), exports);
|
|
97
|
-
__exportStar(require("./PostedVoice"), exports);
|
|
98
|
-
__exportStar(require("./PostedLanguageModelModelProvider"), exports);
|
|
99
|
-
__exportStar(require("./PostedLanguageModelModelResource"), exports);
|
|
100
98
|
__exportStar(require("./PostedLanguageModel"), exports);
|
|
101
99
|
__exportStar(require("./PostedEllmModel"), exports);
|
|
102
100
|
__exportStar(require("./PostedUserDefinedToolSpec"), exports);
|
|
@@ -108,10 +106,6 @@ __exportStar(require("./PostedTimeoutSpecsMaxDuration"), exports);
|
|
|
108
106
|
__exportStar(require("./PostedTimeoutSpecs"), exports);
|
|
109
107
|
__exportStar(require("./PostedWebhookEventType"), exports);
|
|
110
108
|
__exportStar(require("./PostedWebhookSpec"), exports);
|
|
111
|
-
__exportStar(require("./ReturnVoiceProvider"), exports);
|
|
112
|
-
__exportStar(require("./ReturnVoice"), exports);
|
|
113
|
-
__exportStar(require("./ReturnLanguageModelModelProvider"), exports);
|
|
114
|
-
__exportStar(require("./ReturnLanguageModelModelResource"), exports);
|
|
115
109
|
__exportStar(require("./ReturnLanguageModel"), exports);
|
|
116
110
|
__exportStar(require("./ReturnEllmModel"), exports);
|
|
117
111
|
__exportStar(require("./ReturnBuiltinToolToolType"), exports);
|
|
@@ -132,3 +126,7 @@ __exportStar(require("./PostedTimeoutSpec"), exports);
|
|
|
132
126
|
__exportStar(require("./ReturnEventMessageSpec"), exports);
|
|
133
127
|
__exportStar(require("./ReturnTimeoutSpec"), exports);
|
|
134
128
|
__exportStar(require("./PostedPromptSpec"), exports);
|
|
129
|
+
__exportStar(require("./PostedVoiceProvider"), exports);
|
|
130
|
+
__exportStar(require("./PostedVoice"), exports);
|
|
131
|
+
__exportStar(require("./ReturnVoiceProvider"), exports);
|
|
132
|
+
__exportStar(require("./ReturnVoice"), exports);
|
|
@@ -109,7 +109,7 @@ class Batch {
|
|
|
109
109
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
110
110
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
111
111
|
method: "GET",
|
|
112
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
112
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
queryParameters: _queryParams,
|
|
115
115
|
requestType: "json",
|
|
@@ -164,7 +164,7 @@ class Batch {
|
|
|
164
164
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
165
165
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
166
166
|
method: "POST",
|
|
167
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
167
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.expressionMeasurement.batch.InferenceBaseRequest.jsonOrThrow(request, {
|
|
@@ -218,7 +218,7 @@ class Batch {
|
|
|
218
218
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
219
219
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
|
|
220
220
|
method: "GET",
|
|
221
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
221
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
222
222
|
contentType: "application/json",
|
|
223
223
|
requestType: "json",
|
|
224
224
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -269,7 +269,7 @@ class Batch {
|
|
|
269
269
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
270
270
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
|
|
271
271
|
method: "GET",
|
|
272
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
272
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
273
273
|
contentType: "application/json",
|
|
274
274
|
requestType: "json",
|
|
275
275
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -314,7 +314,7 @@ class Batch {
|
|
|
314
314
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
315
315
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
|
|
316
316
|
method: "GET",
|
|
317
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
317
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
responseType: "streaming",
|
|
@@ -372,7 +372,7 @@ class Batch {
|
|
|
372
372
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
373
373
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
374
374
|
method: "POST",
|
|
375
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
375
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
376
376
|
requestType: "file",
|
|
377
377
|
duplex: _maybeEncodedRequest.duplex,
|
|
378
378
|
body: _maybeEncodedRequest.body,
|
|
@@ -98,7 +98,7 @@ class Tts {
|
|
|
98
98
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
99
99
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/tts"),
|
|
100
100
|
method: "POST",
|
|
101
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
101
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
requestType: "json",
|
|
104
104
|
body: serializers.tts.PostedTts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -157,7 +157,7 @@ class Tts {
|
|
|
157
157
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
158
158
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/tts/file"),
|
|
159
159
|
method: "POST",
|
|
160
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
160
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
body: serializers.tts.PostedTts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -210,7 +210,7 @@ class Tts {
|
|
|
210
210
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
211
211
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/tts/stream/file"),
|
|
212
212
|
method: "POST",
|
|
213
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
213
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
214
214
|
contentType: "application/json",
|
|
215
215
|
requestType: "json",
|
|
216
216
|
body: serializers.tts.PostedTts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -264,7 +264,7 @@ class Tts {
|
|
|
264
264
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
265
265
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/tts/stream/json"),
|
|
266
266
|
method: "POST",
|
|
267
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
267
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
268
268
|
contentType: "application/json",
|
|
269
269
|
requestType: "json",
|
|
270
270
|
body: serializers.tts.PostedTts.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -93,7 +93,7 @@ class Voices {
|
|
|
93
93
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
94
94
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/tts/voices"),
|
|
95
95
|
method: "GET",
|
|
96
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
96
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
97
97
|
contentType: "application/json",
|
|
98
98
|
queryParameters: _queryParams,
|
|
99
99
|
requestType: "json",
|
|
@@ -171,7 +171,7 @@ class Voices {
|
|
|
171
171
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
172
172
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/tts/voices"),
|
|
173
173
|
method: "POST",
|
|
174
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
174
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
175
175
|
contentType: "application/json",
|
|
176
176
|
requestType: "json",
|
|
177
177
|
body: serializers.tts.PostedVoice.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -240,7 +240,7 @@ class Voices {
|
|
|
240
240
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
241
241
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/tts/voices"),
|
|
242
242
|
method: "DELETE",
|
|
243
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
243
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
244
244
|
contentType: "application/json",
|
|
245
245
|
queryParameters: _queryParams,
|
|
246
246
|
requestType: "json",
|
|
@@ -25,4 +25,11 @@ export interface PostedTts {
|
|
|
25
25
|
* An **Utterance** is a unit of input for [Octave](/docs/text-to-speech-tts/overview), and includes input `text`, an optional `description` to serve as the prompt for how the speech should be delivered, an optional `voice` specification, and additional controls to guide delivery for `speed` and `trailing_silence`.
|
|
26
26
|
*/
|
|
27
27
|
utterances: Hume.tts.PostedUtterance[];
|
|
28
|
+
/**
|
|
29
|
+
* Enables ultra-low latency streaming, significantly reducing the time until the first audio chunk is received. Recommended for real-time applications requiring immediate audio playback. For further details, see our documentation on [instant mode](/docs/text-to-speech-tts/overview#ultra-low-latency-streaming-instant-mode).
|
|
30
|
+
* - Dynamic voice generation is not supported with this mode; a predefined [voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice) must be specified in your request.
|
|
31
|
+
* - This mode is only supported for streaming endpoints (e.g., [/v0/tts/stream/json](/reference/text-to-speech-tts/synthesize-json-streaming), [/v0/tts/stream/file](/reference/text-to-speech-tts/synthesize-file-streaming)).
|
|
32
|
+
* - With `instant_mode` enabled, **requests incur a 10% higher cost** due to increased compute and resource requirements.
|
|
33
|
+
*/
|
|
34
|
+
instantMode?: boolean;
|
|
28
35
|
}
|
|
@@ -6,10 +6,14 @@ export interface SnippetAudioChunk {
|
|
|
6
6
|
audio: string;
|
|
7
7
|
/** The index of the audio chunk in the snippet. */
|
|
8
8
|
chunkIndex: number;
|
|
9
|
-
/** The generation ID the parent snippet that this chunk corresponds to. */
|
|
9
|
+
/** The generation ID of the parent snippet that this chunk corresponds to. */
|
|
10
10
|
generationId: string;
|
|
11
11
|
/** Whether or not this is the last chunk streamed back from the decoder for one input snippet. */
|
|
12
12
|
isLastChunk: boolean;
|
|
13
|
-
/** The
|
|
13
|
+
/** The ID of the parent snippet that this chunk corresponds to. */
|
|
14
|
+
snippetId: string;
|
|
15
|
+
/** The text of the parent snippet that this chunk corresponds to. */
|
|
16
|
+
text: string;
|
|
17
|
+
/** The index of the utterance in the request that the parent snippet of this chunk corresponds to. */
|
|
14
18
|
utteranceIndex?: number;
|
|
15
19
|
}
|
|
@@ -96,7 +96,7 @@ class ChatGroups {
|
|
|
96
96
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
97
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
|
|
98
98
|
method: "GET",
|
|
99
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
99
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
requestType: "json",
|
|
@@ -187,7 +187,7 @@ class ChatGroups {
|
|
|
187
187
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
188
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}`),
|
|
189
189
|
method: "GET",
|
|
190
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
190
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
191
|
contentType: "application/json",
|
|
192
192
|
queryParameters: _queryParams,
|
|
193
193
|
requestType: "json",
|
|
@@ -268,7 +268,7 @@ class ChatGroups {
|
|
|
268
268
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
269
269
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
|
|
270
270
|
method: "GET",
|
|
271
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
271
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
272
272
|
contentType: "application/json",
|
|
273
273
|
queryParameters: _queryParams,
|
|
274
274
|
requestType: "json",
|
|
@@ -359,7 +359,7 @@ class ChatGroups {
|
|
|
359
359
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
360
360
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/audio`),
|
|
361
361
|
method: "GET",
|
|
362
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
362
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
queryParameters: _queryParams,
|
|
365
365
|
requestType: "json",
|
|
@@ -95,7 +95,7 @@ class Chats {
|
|
|
95
95
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
96
96
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, "v0/evi/chats"),
|
|
97
97
|
method: "GET",
|
|
98
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
98
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
99
99
|
contentType: "application/json",
|
|
100
100
|
queryParameters: _queryParams,
|
|
101
101
|
requestType: "json",
|
|
@@ -187,7 +187,7 @@ class Chats {
|
|
|
187
187
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
188
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}`),
|
|
189
189
|
method: "GET",
|
|
190
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
190
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
191
|
contentType: "application/json",
|
|
192
192
|
queryParameters: _queryParams,
|
|
193
193
|
requestType: "json",
|
|
@@ -262,7 +262,7 @@ class Chats {
|
|
|
262
262
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
263
263
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}/audio`),
|
|
264
264
|
method: "GET",
|
|
265
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.
|
|
265
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "hume/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
266
266
|
contentType: "application/json",
|
|
267
267
|
requestType: "json",
|
|
268
268
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -67,7 +67,7 @@ export declare class Configs {
|
|
|
67
67
|
* },
|
|
68
68
|
* languageModel: {
|
|
69
69
|
* modelProvider: "ANTHROPIC",
|
|
70
|
-
* modelResource: "claude-3-7-sonnet",
|
|
70
|
+
* modelResource: "claude-3-7-sonnet-latest",
|
|
71
71
|
* temperature: 1
|
|
72
72
|
* },
|
|
73
73
|
* eventMessages: {
|
|
@@ -127,7 +127,7 @@ export declare class Configs {
|
|
|
127
127
|
* },
|
|
128
128
|
* languageModel: {
|
|
129
129
|
* modelProvider: "ANTHROPIC",
|
|
130
|
-
* modelResource: "claude-3-7-sonnet",
|
|
130
|
+
* modelResource: "claude-3-7-sonnet-latest",
|
|
131
131
|
* temperature: 1
|
|
132
132
|
* },
|
|
133
133
|
* ellmModel: {
|