@breign/client 1.0.197 → 1.0.198
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/models/FileAttachmentDetailsResponseUio.d.ts +4 -1
- package/dist/models/FileAttachmentDetailsResponseUio.js +4 -1
- package/dist/models/FileAttachmentUio.d.ts +4 -1
- package/dist/models/FileAttachmentUio.js +4 -1
- package/dist/models/FileAttachmentUploadResponseUio.d.ts +4 -1
- package/dist/models/FileAttachmentUploadResponseUio.js +4 -1
- package/dist/models/ModelDefinitionUio.d.ts +6 -0
- package/dist/models/ModelDefinitionUio.js +2 -0
- package/dist/openapi.json +6 -2
- package/package.json +1 -1
|
@@ -79,7 +79,7 @@ export interface FileAttachmentDetailsResponseUio {
|
|
|
79
79
|
*/
|
|
80
80
|
ocr?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
82
|
+
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof FileAttachmentDetailsResponseUio
|
|
85
85
|
*/
|
|
@@ -108,6 +108,9 @@ export interface FileAttachmentDetailsResponseUio {
|
|
|
108
108
|
*/
|
|
109
109
|
export declare const FileAttachmentDetailsResponseUioErrorCodeEnum: {
|
|
110
110
|
readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
|
|
111
|
+
readonly SpeechToTextNotConfigured: "SPEECH_TO_TEXT_NOT_CONFIGURED";
|
|
112
|
+
readonly TranscriptionFailed: "TRANSCRIPTION_FAILED";
|
|
113
|
+
readonly AudioTooLarge: "AUDIO_TOO_LARGE";
|
|
111
114
|
};
|
|
112
115
|
export type FileAttachmentDetailsResponseUioErrorCodeEnum = typeof FileAttachmentDetailsResponseUioErrorCodeEnum[keyof typeof FileAttachmentDetailsResponseUioErrorCodeEnum];
|
|
113
116
|
/**
|
|
@@ -26,7 +26,10 @@ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
28
|
exports.FileAttachmentDetailsResponseUioErrorCodeEnum = {
|
|
29
|
-
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
|
|
29
|
+
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE',
|
|
30
|
+
SpeechToTextNotConfigured: 'SPEECH_TO_TEXT_NOT_CONFIGURED',
|
|
31
|
+
TranscriptionFailed: 'TRANSCRIPTION_FAILED',
|
|
32
|
+
AudioTooLarge: 'AUDIO_TOO_LARGE'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* Check if a given object implements the FileAttachmentDetailsResponseUio interface.
|
|
@@ -79,7 +79,7 @@ export interface FileAttachmentUio {
|
|
|
79
79
|
*/
|
|
80
80
|
ocr?: boolean;
|
|
81
81
|
/**
|
|
82
|
-
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
82
|
+
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof FileAttachmentUio
|
|
85
85
|
*/
|
|
@@ -108,6 +108,9 @@ export interface FileAttachmentUio {
|
|
|
108
108
|
*/
|
|
109
109
|
export declare const FileAttachmentUioErrorCodeEnum: {
|
|
110
110
|
readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
|
|
111
|
+
readonly SpeechToTextNotConfigured: "SPEECH_TO_TEXT_NOT_CONFIGURED";
|
|
112
|
+
readonly TranscriptionFailed: "TRANSCRIPTION_FAILED";
|
|
113
|
+
readonly AudioTooLarge: "AUDIO_TOO_LARGE";
|
|
111
114
|
};
|
|
112
115
|
export type FileAttachmentUioErrorCodeEnum = typeof FileAttachmentUioErrorCodeEnum[keyof typeof FileAttachmentUioErrorCodeEnum];
|
|
113
116
|
/**
|
|
@@ -26,7 +26,10 @@ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
28
|
exports.FileAttachmentUioErrorCodeEnum = {
|
|
29
|
-
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
|
|
29
|
+
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE',
|
|
30
|
+
SpeechToTextNotConfigured: 'SPEECH_TO_TEXT_NOT_CONFIGURED',
|
|
31
|
+
TranscriptionFailed: 'TRANSCRIPTION_FAILED',
|
|
32
|
+
AudioTooLarge: 'AUDIO_TOO_LARGE'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* Check if a given object implements the FileAttachmentUio interface.
|
|
@@ -80,7 +80,7 @@ export interface FileAttachmentUploadResponseUio {
|
|
|
80
80
|
*/
|
|
81
81
|
ocr?: boolean;
|
|
82
82
|
/**
|
|
83
|
-
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
|
|
83
|
+
* Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.
|
|
84
84
|
* @type {string}
|
|
85
85
|
* @memberof FileAttachmentUploadResponseUio
|
|
86
86
|
*/
|
|
@@ -137,6 +137,9 @@ export interface FileAttachmentUploadResponseUio {
|
|
|
137
137
|
*/
|
|
138
138
|
export declare const FileAttachmentUploadResponseUioErrorCodeEnum: {
|
|
139
139
|
readonly AttachmentTooLarge: "ATTACHMENT_TOO_LARGE";
|
|
140
|
+
readonly SpeechToTextNotConfigured: "SPEECH_TO_TEXT_NOT_CONFIGURED";
|
|
141
|
+
readonly TranscriptionFailed: "TRANSCRIPTION_FAILED";
|
|
142
|
+
readonly AudioTooLarge: "AUDIO_TOO_LARGE";
|
|
140
143
|
};
|
|
141
144
|
export type FileAttachmentUploadResponseUioErrorCodeEnum = typeof FileAttachmentUploadResponseUioErrorCodeEnum[keyof typeof FileAttachmentUploadResponseUioErrorCodeEnum];
|
|
142
145
|
/**
|
|
@@ -27,7 +27,10 @@ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
|
27
27
|
* @export
|
|
28
28
|
*/
|
|
29
29
|
exports.FileAttachmentUploadResponseUioErrorCodeEnum = {
|
|
30
|
-
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE'
|
|
30
|
+
AttachmentTooLarge: 'ATTACHMENT_TOO_LARGE',
|
|
31
|
+
SpeechToTextNotConfigured: 'SPEECH_TO_TEXT_NOT_CONFIGURED',
|
|
32
|
+
TranscriptionFailed: 'TRANSCRIPTION_FAILED',
|
|
33
|
+
AudioTooLarge: 'AUDIO_TOO_LARGE'
|
|
31
34
|
};
|
|
32
35
|
/**
|
|
33
36
|
* Check if a given object implements the FileAttachmentUploadResponseUio interface.
|
|
@@ -63,6 +63,12 @@ export interface ModelDefinitionUio {
|
|
|
63
63
|
* @memberof ModelDefinitionUio
|
|
64
64
|
*/
|
|
65
65
|
hasSpeechToText?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Le modèle accepte de l'audio en entrée dans un message de chat. Sans cette capacité, une pièce jointe audio lui parvient sous forme de transcription.
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof ModelDefinitionUio
|
|
70
|
+
*/
|
|
71
|
+
hasAudioInput?: boolean;
|
|
66
72
|
/**
|
|
67
73
|
* Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.
|
|
68
74
|
* @type {boolean}
|
|
@@ -53,6 +53,7 @@ function ModelDefinitionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'hasReasoning': json['hasReasoning'] == null ? undefined : json['hasReasoning'],
|
|
54
54
|
'hasEmbedding': json['hasEmbedding'] == null ? undefined : json['hasEmbedding'],
|
|
55
55
|
'hasSpeechToText': json['hasSpeechToText'] == null ? undefined : json['hasSpeechToText'],
|
|
56
|
+
'hasAudioInput': json['hasAudioInput'] == null ? undefined : json['hasAudioInput'],
|
|
56
57
|
'hasOcr': json['hasOcr'] == null ? undefined : json['hasOcr'],
|
|
57
58
|
'hasDecision': json['hasDecision'] == null ? undefined : json['hasDecision'],
|
|
58
59
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
@@ -79,6 +80,7 @@ function ModelDefinitionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'hasReasoning': value['hasReasoning'],
|
|
80
81
|
'hasEmbedding': value['hasEmbedding'],
|
|
81
82
|
'hasSpeechToText': value['hasSpeechToText'],
|
|
83
|
+
'hasAudioInput': value['hasAudioInput'],
|
|
82
84
|
'hasOcr': value['hasOcr'],
|
|
83
85
|
'hasDecision': value['hasDecision'],
|
|
84
86
|
'maxTokens': value['maxTokens'],
|
package/dist/openapi.json
CHANGED
|
@@ -26410,8 +26410,8 @@
|
|
|
26410
26410
|
"type" : "boolean"
|
|
26411
26411
|
},
|
|
26412
26412
|
"errorCode" : {
|
|
26413
|
-
"description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)",
|
|
26414
|
-
"enum" : [ "ATTACHMENT_TOO_LARGE" ],
|
|
26413
|
+
"description" : "Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE). SPEECH_TO_TEXT_NOT_CONFIGURED: an audio attachment for a model without audio input, and no speech-to-text model to transcribe it. TRANSCRIPTION_FAILED: the transcription of an audio attachment failed. AUDIO_TOO_LARGE: the audio exceeds what the transcription API accepts (25 MB) and the model cannot read it directly.",
|
|
26414
|
+
"enum" : [ "ATTACHMENT_TOO_LARGE", "SPEECH_TO_TEXT_NOT_CONFIGURED", "TRANSCRIPTION_FAILED", "AUDIO_TOO_LARGE" ],
|
|
26415
26415
|
"type" : "string"
|
|
26416
26416
|
},
|
|
26417
26417
|
"estimatedTokens" : {
|
|
@@ -29414,6 +29414,10 @@
|
|
|
29414
29414
|
"hasSpeechToText" : {
|
|
29415
29415
|
"type" : "boolean"
|
|
29416
29416
|
},
|
|
29417
|
+
"hasAudioInput" : {
|
|
29418
|
+
"description" : "Le modèle accepte de l'audio en entrée dans un message de chat. Sans cette capacité, une pièce jointe audio lui parvient sous forme de transcription.",
|
|
29419
|
+
"type" : "boolean"
|
|
29420
|
+
},
|
|
29417
29421
|
"hasOcr" : {
|
|
29418
29422
|
"description" : "Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.",
|
|
29419
29423
|
"type" : "boolean"
|