@breign/client 1.0.191 → 1.0.192
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/apis/AiGatewayApi.d.ts +15 -1
- package/dist/apis/AiGatewayApi.js +34 -0
- package/dist/models/AiGatewaySystemOneAnswerUio.d.ts +68 -0
- package/dist/models/AiGatewaySystemOneAnswerUio.js +69 -0
- package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.d.ts +23 -0
- package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.js +37 -0
- package/dist/models/AiGatewaySystemOneQuestionUio.d.ts +54 -0
- package/dist/models/AiGatewaySystemOneQuestionUio.js +66 -0
- package/dist/models/AiGatewaySystemOneRequestStateUio.d.ts +23 -0
- package/dist/models/AiGatewaySystemOneRequestStateUio.js +37 -0
- package/dist/models/AiGatewaySystemOneRequestUio.d.ts +54 -0
- package/dist/models/AiGatewaySystemOneRequestUio.js +63 -0
- package/dist/models/AiGatewaySystemOneResponseUio.d.ts +48 -0
- package/dist/models/AiGatewaySystemOneResponseUio.js +61 -0
- package/dist/models/AiGatewaySystemOneResponseUsageUio.d.ts +38 -0
- package/dist/models/AiGatewaySystemOneResponseUsageUio.js +50 -0
- package/dist/models/ModelDefinitionUio.d.ts +6 -0
- package/dist/models/ModelDefinitionUio.js +2 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/openapi.json +216 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
13
|
+
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewaySystemOneRequestUio, AiGatewaySystemOneResponseUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
14
14
|
export interface CreateAiGatewayChatCompletionRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
aiGatewayChatCompletionRequestUio: AiGatewayChatCompletionRequestUio;
|
|
@@ -19,6 +19,10 @@ export interface CreateAiGatewayEmbeddingRequest {
|
|
|
19
19
|
organizationId: string;
|
|
20
20
|
aiGatewayEmbeddingRequestUio: AiGatewayEmbeddingRequestUio;
|
|
21
21
|
}
|
|
22
|
+
export interface CreateAiGatewaySystemOneDecisionRequest {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
aiGatewaySystemOneRequestUio: AiGatewaySystemOneRequestUio;
|
|
25
|
+
}
|
|
22
26
|
export interface CreateOpenAiChatCompletionRequest {
|
|
23
27
|
organizationId: string;
|
|
24
28
|
openAiChatCompletionRequestUio: OpenAiChatCompletionRequestUio;
|
|
@@ -105,6 +109,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
|
|
|
105
109
|
* Create an embedding through the AI gateway
|
|
106
110
|
*/
|
|
107
111
|
createAiGatewayEmbedding(organizationId: string, aiGatewayEmbeddingRequestUio: AiGatewayEmbeddingRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayEmbeddingResponseUio>;
|
|
112
|
+
/**
|
|
113
|
+
* Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
|
|
114
|
+
* Ask a decision model through the AI gateway
|
|
115
|
+
*/
|
|
116
|
+
createAiGatewaySystemOneDecisionRaw(requestParameters: CreateAiGatewaySystemOneDecisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewaySystemOneResponseUio>>;
|
|
117
|
+
/**
|
|
118
|
+
* Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
|
|
119
|
+
* Ask a decision model through the AI gateway
|
|
120
|
+
*/
|
|
121
|
+
createAiGatewaySystemOneDecision(organizationId: string, aiGatewaySystemOneRequestUio: AiGatewaySystemOneRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewaySystemOneResponseUio>;
|
|
108
122
|
/**
|
|
109
123
|
* OpenAI-compatible chat completion. Contrairement à `/ai-gateway/chat/completions`, la réponse OpenAI native est relayée sans transformation, `stream_options` est accepté, et la consommation de tokens est enregistrée dans les métriques de l\'organisation. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
|
|
110
124
|
* Create a chat completion using the native OpenAI client
|
|
@@ -121,6 +121,40 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
121
121
|
const response = await this.createAiGatewayEmbeddingRaw({ organizationId: organizationId, aiGatewayEmbeddingRequestUio: aiGatewayEmbeddingRequestUio }, initOverrides);
|
|
122
122
|
return await response.value();
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
|
|
126
|
+
* Ask a decision model through the AI gateway
|
|
127
|
+
*/
|
|
128
|
+
async createAiGatewaySystemOneDecisionRaw(requestParameters, initOverrides) {
|
|
129
|
+
if (requestParameters['organizationId'] == null) {
|
|
130
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createAiGatewaySystemOneDecision().');
|
|
131
|
+
}
|
|
132
|
+
if (requestParameters['aiGatewaySystemOneRequestUio'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('aiGatewaySystemOneRequestUio', 'Required parameter "aiGatewaySystemOneRequestUio" was null or undefined when calling createAiGatewaySystemOneDecision().');
|
|
134
|
+
}
|
|
135
|
+
const queryParameters = {};
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
138
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
139
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
140
|
+
}
|
|
141
|
+
const response = await this.request({
|
|
142
|
+
path: `/organizations/{organizationId}/ai-gateway/systemone`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
143
|
+
method: 'POST',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
body: (0, index_1.AiGatewaySystemOneRequestUioToJSON)(requestParameters['aiGatewaySystemOneRequestUio']),
|
|
147
|
+
}, initOverrides);
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySystemOneResponseUioFromJSON)(jsonValue));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
|
|
152
|
+
* Ask a decision model through the AI gateway
|
|
153
|
+
*/
|
|
154
|
+
async createAiGatewaySystemOneDecision(organizationId, aiGatewaySystemOneRequestUio, initOverrides) {
|
|
155
|
+
const response = await this.createAiGatewaySystemOneDecisionRaw({ organizationId: organizationId, aiGatewaySystemOneRequestUio: aiGatewaySystemOneRequestUio }, initOverrides);
|
|
156
|
+
return await response.value();
|
|
157
|
+
}
|
|
124
158
|
/**
|
|
125
159
|
* OpenAI-compatible chat completion. Contrairement à `/ai-gateway/chat/completions`, la réponse OpenAI native est relayée sans transformation, `stream_options` est accepté, et la consommation de tokens est enregistrée dans les métriques de l\'organisation. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
|
|
126
160
|
* Create a chat completion using the native OpenAI client
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiGatewaySystemOneAnswerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewaySystemOneAnswerUio {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewaySystemOneAnswerUio
|
|
23
|
+
*/
|
|
24
|
+
type: AiGatewaySystemOneAnswerUioTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AiGatewaySystemOneAnswerUio
|
|
29
|
+
*/
|
|
30
|
+
choice?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AiGatewaySystemOneAnswerUio
|
|
35
|
+
*/
|
|
36
|
+
noul?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AiGatewaySystemOneAnswerUio
|
|
41
|
+
*/
|
|
42
|
+
score?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {{ [key: string]: number; }}
|
|
46
|
+
* @memberof AiGatewaySystemOneAnswerUio
|
|
47
|
+
*/
|
|
48
|
+
probabilities?: {
|
|
49
|
+
[key: string]: number;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const AiGatewaySystemOneAnswerUioTypeEnum: {
|
|
56
|
+
readonly Choice: "choice";
|
|
57
|
+
readonly Noul: "noul";
|
|
58
|
+
readonly Score: "score";
|
|
59
|
+
};
|
|
60
|
+
export type AiGatewaySystemOneAnswerUioTypeEnum = typeof AiGatewaySystemOneAnswerUioTypeEnum[keyof typeof AiGatewaySystemOneAnswerUioTypeEnum];
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the AiGatewaySystemOneAnswerUio interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfAiGatewaySystemOneAnswerUio(value: object): value is AiGatewaySystemOneAnswerUio;
|
|
65
|
+
export declare function AiGatewaySystemOneAnswerUioFromJSON(json: any): AiGatewaySystemOneAnswerUio;
|
|
66
|
+
export declare function AiGatewaySystemOneAnswerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneAnswerUio;
|
|
67
|
+
export declare function AiGatewaySystemOneAnswerUioToJSON(json: any): AiGatewaySystemOneAnswerUio;
|
|
68
|
+
export declare function AiGatewaySystemOneAnswerUioToJSONTyped(value?: AiGatewaySystemOneAnswerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AiGatewaySystemOneAnswerUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewaySystemOneAnswerUio = instanceOfAiGatewaySystemOneAnswerUio;
|
|
18
|
+
exports.AiGatewaySystemOneAnswerUioFromJSON = AiGatewaySystemOneAnswerUioFromJSON;
|
|
19
|
+
exports.AiGatewaySystemOneAnswerUioFromJSONTyped = AiGatewaySystemOneAnswerUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewaySystemOneAnswerUioToJSON = AiGatewaySystemOneAnswerUioToJSON;
|
|
21
|
+
exports.AiGatewaySystemOneAnswerUioToJSONTyped = AiGatewaySystemOneAnswerUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AiGatewaySystemOneAnswerUioTypeEnum = {
|
|
26
|
+
Choice: 'choice',
|
|
27
|
+
Noul: 'noul',
|
|
28
|
+
Score: 'score'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AiGatewaySystemOneAnswerUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAiGatewaySystemOneAnswerUio(value) {
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function AiGatewaySystemOneAnswerUioFromJSON(json) {
|
|
39
|
+
return AiGatewaySystemOneAnswerUioFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AiGatewaySystemOneAnswerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
...json,
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
'choice': json['choice'] == null ? undefined : json['choice'],
|
|
49
|
+
'noul': json['noul'] == null ? undefined : json['noul'],
|
|
50
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
51
|
+
'probabilities': json['probabilities'] == null ? undefined : json['probabilities'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AiGatewaySystemOneAnswerUioToJSON(json) {
|
|
55
|
+
return AiGatewaySystemOneAnswerUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AiGatewaySystemOneAnswerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
...value,
|
|
63
|
+
'type': value['type'],
|
|
64
|
+
'choice': value['choice'],
|
|
65
|
+
'noul': value['noul'],
|
|
66
|
+
'score': value['score'],
|
|
67
|
+
'probabilities': value['probabilities'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @type AiGatewaySystemOneQuestionCriteriaUio
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export type AiGatewaySystemOneQuestionCriteriaUio = Array<string> | {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function AiGatewaySystemOneQuestionCriteriaUioFromJSON(json: any): AiGatewaySystemOneQuestionCriteriaUio;
|
|
21
|
+
export declare function AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneQuestionCriteriaUio;
|
|
22
|
+
export declare function AiGatewaySystemOneQuestionCriteriaUioToJSON(json: any): any;
|
|
23
|
+
export declare function AiGatewaySystemOneQuestionCriteriaUioToJSONTyped(value?: AiGatewaySystemOneQuestionCriteriaUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AiGatewaySystemOneQuestionCriteriaUioFromJSON = AiGatewaySystemOneQuestionCriteriaUioFromJSON;
|
|
17
|
+
exports.AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped = AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped;
|
|
18
|
+
exports.AiGatewaySystemOneQuestionCriteriaUioToJSON = AiGatewaySystemOneQuestionCriteriaUioToJSON;
|
|
19
|
+
exports.AiGatewaySystemOneQuestionCriteriaUioToJSONTyped = AiGatewaySystemOneQuestionCriteriaUioToJSONTyped;
|
|
20
|
+
function AiGatewaySystemOneQuestionCriteriaUioFromJSON(json) {
|
|
21
|
+
return AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
function AiGatewaySystemOneQuestionCriteriaUioToJSON(json) {
|
|
30
|
+
return AiGatewaySystemOneQuestionCriteriaUioToJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AiGatewaySystemOneQuestionCriteriaUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AiGatewaySystemOneQuestionCriteriaUio } from './AiGatewaySystemOneQuestionCriteriaUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewaySystemOneQuestionUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewaySystemOneQuestionUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewaySystemOneQuestionUio
|
|
23
|
+
*/
|
|
24
|
+
type: AiGatewaySystemOneQuestionUioTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AiGatewaySystemOneQuestionUio
|
|
29
|
+
*/
|
|
30
|
+
instructions: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {AiGatewaySystemOneQuestionCriteriaUio}
|
|
34
|
+
* @memberof AiGatewaySystemOneQuestionUio
|
|
35
|
+
*/
|
|
36
|
+
criteria?: AiGatewaySystemOneQuestionCriteriaUio;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const AiGatewaySystemOneQuestionUioTypeEnum: {
|
|
42
|
+
readonly Choice: "choice";
|
|
43
|
+
readonly Noul: "noul";
|
|
44
|
+
readonly Score: "score";
|
|
45
|
+
};
|
|
46
|
+
export type AiGatewaySystemOneQuestionUioTypeEnum = typeof AiGatewaySystemOneQuestionUioTypeEnum[keyof typeof AiGatewaySystemOneQuestionUioTypeEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AiGatewaySystemOneQuestionUio interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAiGatewaySystemOneQuestionUio(value: object): value is AiGatewaySystemOneQuestionUio;
|
|
51
|
+
export declare function AiGatewaySystemOneQuestionUioFromJSON(json: any): AiGatewaySystemOneQuestionUio;
|
|
52
|
+
export declare function AiGatewaySystemOneQuestionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneQuestionUio;
|
|
53
|
+
export declare function AiGatewaySystemOneQuestionUioToJSON(json: any): AiGatewaySystemOneQuestionUio;
|
|
54
|
+
export declare function AiGatewaySystemOneQuestionUioToJSONTyped(value?: AiGatewaySystemOneQuestionUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AiGatewaySystemOneQuestionUioTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewaySystemOneQuestionUio = instanceOfAiGatewaySystemOneQuestionUio;
|
|
18
|
+
exports.AiGatewaySystemOneQuestionUioFromJSON = AiGatewaySystemOneQuestionUioFromJSON;
|
|
19
|
+
exports.AiGatewaySystemOneQuestionUioFromJSONTyped = AiGatewaySystemOneQuestionUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewaySystemOneQuestionUioToJSON = AiGatewaySystemOneQuestionUioToJSON;
|
|
21
|
+
exports.AiGatewaySystemOneQuestionUioToJSONTyped = AiGatewaySystemOneQuestionUioToJSONTyped;
|
|
22
|
+
const AiGatewaySystemOneQuestionCriteriaUio_1 = require("./AiGatewaySystemOneQuestionCriteriaUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AiGatewaySystemOneQuestionUioTypeEnum = {
|
|
27
|
+
Choice: 'choice',
|
|
28
|
+
Noul: 'noul',
|
|
29
|
+
Score: 'score'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AiGatewaySystemOneQuestionUio interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfAiGatewaySystemOneQuestionUio(value) {
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AiGatewaySystemOneQuestionUioFromJSON(json) {
|
|
42
|
+
return AiGatewaySystemOneQuestionUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewaySystemOneQuestionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'type': json['type'],
|
|
50
|
+
'instructions': json['instructions'],
|
|
51
|
+
'criteria': json['criteria'] == null ? undefined : (0, AiGatewaySystemOneQuestionCriteriaUio_1.AiGatewaySystemOneQuestionCriteriaUioFromJSON)(json['criteria']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function AiGatewaySystemOneQuestionUioToJSON(json) {
|
|
55
|
+
return AiGatewaySystemOneQuestionUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AiGatewaySystemOneQuestionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'type': value['type'],
|
|
63
|
+
'instructions': value['instructions'],
|
|
64
|
+
'criteria': (0, AiGatewaySystemOneQuestionCriteriaUio_1.AiGatewaySystemOneQuestionCriteriaUioToJSON)(value['criteria']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @type AiGatewaySystemOneRequestStateUio
|
|
14
|
+
* Entrée sur laquelle décider, texte ou objet JSON.
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export type AiGatewaySystemOneRequestStateUio = string | {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
export declare function AiGatewaySystemOneRequestStateUioFromJSON(json: any): AiGatewaySystemOneRequestStateUio;
|
|
21
|
+
export declare function AiGatewaySystemOneRequestStateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneRequestStateUio;
|
|
22
|
+
export declare function AiGatewaySystemOneRequestStateUioToJSON(json: any): any;
|
|
23
|
+
export declare function AiGatewaySystemOneRequestStateUioToJSONTyped(value?: AiGatewaySystemOneRequestStateUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AiGatewaySystemOneRequestStateUioFromJSON = AiGatewaySystemOneRequestStateUioFromJSON;
|
|
17
|
+
exports.AiGatewaySystemOneRequestStateUioFromJSONTyped = AiGatewaySystemOneRequestStateUioFromJSONTyped;
|
|
18
|
+
exports.AiGatewaySystemOneRequestStateUioToJSON = AiGatewaySystemOneRequestStateUioToJSON;
|
|
19
|
+
exports.AiGatewaySystemOneRequestStateUioToJSONTyped = AiGatewaySystemOneRequestStateUioToJSONTyped;
|
|
20
|
+
function AiGatewaySystemOneRequestStateUioFromJSON(json) {
|
|
21
|
+
return AiGatewaySystemOneRequestStateUioFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function AiGatewaySystemOneRequestStateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
function AiGatewaySystemOneRequestStateUioToJSON(json) {
|
|
30
|
+
return AiGatewaySystemOneRequestStateUioToJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AiGatewaySystemOneRequestStateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AiGatewaySystemOneQuestionUio } from './AiGatewaySystemOneQuestionUio';
|
|
13
|
+
import type { AiGatewaySystemOneRequestStateUio } from './AiGatewaySystemOneRequestStateUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AiGatewaySystemOneRequestUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AiGatewaySystemOneRequestUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AiGatewaySystemOneRequestUio
|
|
24
|
+
*/
|
|
25
|
+
model: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {AiGatewaySystemOneRequestStateUio}
|
|
29
|
+
* @memberof AiGatewaySystemOneRequestUio
|
|
30
|
+
*/
|
|
31
|
+
state: AiGatewaySystemOneRequestStateUio;
|
|
32
|
+
/**
|
|
33
|
+
* Images encodées en base64 (PNG, JPEG ou WebP), partagées par toutes les questions.
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof AiGatewaySystemOneRequestUio
|
|
36
|
+
*/
|
|
37
|
+
images?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {{ [key: string]: AiGatewaySystemOneQuestionUio; }}
|
|
41
|
+
* @memberof AiGatewaySystemOneRequestUio
|
|
42
|
+
*/
|
|
43
|
+
questions: {
|
|
44
|
+
[key: string]: AiGatewaySystemOneQuestionUio;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AiGatewaySystemOneRequestUio interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAiGatewaySystemOneRequestUio(value: object): value is AiGatewaySystemOneRequestUio;
|
|
51
|
+
export declare function AiGatewaySystemOneRequestUioFromJSON(json: any): AiGatewaySystemOneRequestUio;
|
|
52
|
+
export declare function AiGatewaySystemOneRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneRequestUio;
|
|
53
|
+
export declare function AiGatewaySystemOneRequestUioToJSON(json: any): AiGatewaySystemOneRequestUio;
|
|
54
|
+
export declare function AiGatewaySystemOneRequestUioToJSONTyped(value?: AiGatewaySystemOneRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAiGatewaySystemOneRequestUio = instanceOfAiGatewaySystemOneRequestUio;
|
|
17
|
+
exports.AiGatewaySystemOneRequestUioFromJSON = AiGatewaySystemOneRequestUioFromJSON;
|
|
18
|
+
exports.AiGatewaySystemOneRequestUioFromJSONTyped = AiGatewaySystemOneRequestUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewaySystemOneRequestUioToJSON = AiGatewaySystemOneRequestUioToJSON;
|
|
20
|
+
exports.AiGatewaySystemOneRequestUioToJSONTyped = AiGatewaySystemOneRequestUioToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
22
|
+
const AiGatewaySystemOneQuestionUio_1 = require("./AiGatewaySystemOneQuestionUio");
|
|
23
|
+
const AiGatewaySystemOneRequestStateUio_1 = require("./AiGatewaySystemOneRequestStateUio");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AiGatewaySystemOneRequestUio interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfAiGatewaySystemOneRequestUio(value) {
|
|
28
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AiGatewaySystemOneRequestUioFromJSON(json) {
|
|
37
|
+
return AiGatewaySystemOneRequestUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AiGatewaySystemOneRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'model': json['model'],
|
|
45
|
+
'state': (0, AiGatewaySystemOneRequestStateUio_1.AiGatewaySystemOneRequestStateUioFromJSON)(json['state']),
|
|
46
|
+
'images': json['images'] == null ? undefined : json['images'],
|
|
47
|
+
'questions': ((0, runtime_1.mapValues)(json['questions'], AiGatewaySystemOneQuestionUio_1.AiGatewaySystemOneQuestionUioFromJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AiGatewaySystemOneRequestUioToJSON(json) {
|
|
51
|
+
return AiGatewaySystemOneRequestUioToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AiGatewaySystemOneRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'model': value['model'],
|
|
59
|
+
'state': (0, AiGatewaySystemOneRequestStateUio_1.AiGatewaySystemOneRequestStateUioToJSON)(value['state']),
|
|
60
|
+
'images': value['images'],
|
|
61
|
+
'questions': ((0, runtime_1.mapValues)(value['questions'], AiGatewaySystemOneQuestionUio_1.AiGatewaySystemOneQuestionUioToJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AiGatewaySystemOneResponseUsageUio } from './AiGatewaySystemOneResponseUsageUio';
|
|
13
|
+
import type { AiGatewaySystemOneAnswerUio } from './AiGatewaySystemOneAnswerUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AiGatewaySystemOneResponseUio
|
|
18
|
+
*/
|
|
19
|
+
export interface AiGatewaySystemOneResponseUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AiGatewaySystemOneResponseUio
|
|
24
|
+
*/
|
|
25
|
+
model: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {{ [key: string]: AiGatewaySystemOneAnswerUio; }}
|
|
29
|
+
* @memberof AiGatewaySystemOneResponseUio
|
|
30
|
+
*/
|
|
31
|
+
answers: {
|
|
32
|
+
[key: string]: AiGatewaySystemOneAnswerUio;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {AiGatewaySystemOneResponseUsageUio}
|
|
37
|
+
* @memberof AiGatewaySystemOneResponseUio
|
|
38
|
+
*/
|
|
39
|
+
usage: AiGatewaySystemOneResponseUsageUio;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the AiGatewaySystemOneResponseUio interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfAiGatewaySystemOneResponseUio(value: object): value is AiGatewaySystemOneResponseUio;
|
|
45
|
+
export declare function AiGatewaySystemOneResponseUioFromJSON(json: any): AiGatewaySystemOneResponseUio;
|
|
46
|
+
export declare function AiGatewaySystemOneResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneResponseUio;
|
|
47
|
+
export declare function AiGatewaySystemOneResponseUioToJSON(json: any): AiGatewaySystemOneResponseUio;
|
|
48
|
+
export declare function AiGatewaySystemOneResponseUioToJSONTyped(value?: AiGatewaySystemOneResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAiGatewaySystemOneResponseUio = instanceOfAiGatewaySystemOneResponseUio;
|
|
17
|
+
exports.AiGatewaySystemOneResponseUioFromJSON = AiGatewaySystemOneResponseUioFromJSON;
|
|
18
|
+
exports.AiGatewaySystemOneResponseUioFromJSONTyped = AiGatewaySystemOneResponseUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewaySystemOneResponseUioToJSON = AiGatewaySystemOneResponseUioToJSON;
|
|
20
|
+
exports.AiGatewaySystemOneResponseUioToJSONTyped = AiGatewaySystemOneResponseUioToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
22
|
+
const AiGatewaySystemOneResponseUsageUio_1 = require("./AiGatewaySystemOneResponseUsageUio");
|
|
23
|
+
const AiGatewaySystemOneAnswerUio_1 = require("./AiGatewaySystemOneAnswerUio");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AiGatewaySystemOneResponseUio interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfAiGatewaySystemOneResponseUio(value) {
|
|
28
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('answers' in value) || value['answers'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('usage' in value) || value['usage'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AiGatewaySystemOneResponseUioFromJSON(json) {
|
|
37
|
+
return AiGatewaySystemOneResponseUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AiGatewaySystemOneResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'model': json['model'],
|
|
45
|
+
'answers': ((0, runtime_1.mapValues)(json['answers'], AiGatewaySystemOneAnswerUio_1.AiGatewaySystemOneAnswerUioFromJSON)),
|
|
46
|
+
'usage': (0, AiGatewaySystemOneResponseUsageUio_1.AiGatewaySystemOneResponseUsageUioFromJSON)(json['usage']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AiGatewaySystemOneResponseUioToJSON(json) {
|
|
50
|
+
return AiGatewaySystemOneResponseUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AiGatewaySystemOneResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'model': value['model'],
|
|
58
|
+
'answers': ((0, runtime_1.mapValues)(value['answers'], AiGatewaySystemOneAnswerUio_1.AiGatewaySystemOneAnswerUioToJSON)),
|
|
59
|
+
'usage': (0, AiGatewaySystemOneResponseUsageUio_1.AiGatewaySystemOneResponseUsageUioToJSON)(value['usage']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiGatewaySystemOneResponseUsageUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewaySystemOneResponseUsageUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AiGatewaySystemOneResponseUsageUio
|
|
22
|
+
*/
|
|
23
|
+
inputTokens?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AiGatewaySystemOneResponseUsageUio
|
|
28
|
+
*/
|
|
29
|
+
outputTokens?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AiGatewaySystemOneResponseUsageUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAiGatewaySystemOneResponseUsageUio(value: object): value is AiGatewaySystemOneResponseUsageUio;
|
|
35
|
+
export declare function AiGatewaySystemOneResponseUsageUioFromJSON(json: any): AiGatewaySystemOneResponseUsageUio;
|
|
36
|
+
export declare function AiGatewaySystemOneResponseUsageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneResponseUsageUio;
|
|
37
|
+
export declare function AiGatewaySystemOneResponseUsageUioToJSON(json: any): AiGatewaySystemOneResponseUsageUio;
|
|
38
|
+
export declare function AiGatewaySystemOneResponseUsageUioToJSONTyped(value?: AiGatewaySystemOneResponseUsageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAiGatewaySystemOneResponseUsageUio = instanceOfAiGatewaySystemOneResponseUsageUio;
|
|
17
|
+
exports.AiGatewaySystemOneResponseUsageUioFromJSON = AiGatewaySystemOneResponseUsageUioFromJSON;
|
|
18
|
+
exports.AiGatewaySystemOneResponseUsageUioFromJSONTyped = AiGatewaySystemOneResponseUsageUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewaySystemOneResponseUsageUioToJSON = AiGatewaySystemOneResponseUsageUioToJSON;
|
|
20
|
+
exports.AiGatewaySystemOneResponseUsageUioToJSONTyped = AiGatewaySystemOneResponseUsageUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewaySystemOneResponseUsageUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewaySystemOneResponseUsageUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AiGatewaySystemOneResponseUsageUioFromJSON(json) {
|
|
28
|
+
return AiGatewaySystemOneResponseUsageUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AiGatewaySystemOneResponseUsageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'inputTokens': json['input_tokens'] == null ? undefined : json['input_tokens'],
|
|
36
|
+
'outputTokens': json['output_tokens'] == null ? undefined : json['output_tokens'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AiGatewaySystemOneResponseUsageUioToJSON(json) {
|
|
40
|
+
return AiGatewaySystemOneResponseUsageUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AiGatewaySystemOneResponseUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'input_tokens': value['inputTokens'],
|
|
48
|
+
'output_tokens': value['outputTokens'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -69,6 +69,12 @@ export interface ModelDefinitionUio {
|
|
|
69
69
|
* @memberof ModelDefinitionUio
|
|
70
70
|
*/
|
|
71
71
|
hasOcr?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Modèle de décision (API System One `/v1/systemone`, ou Decisions API d'OpenAI) : il renvoie des probabilités sur des questions typées au lieu de générer du texte. Non conversationnel, accessible uniquement via la ai-gateway (`/ai-gateway/v1/systemone`).
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof ModelDefinitionUio
|
|
76
|
+
*/
|
|
77
|
+
hasDecision?: boolean;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {number}
|
|
@@ -54,6 +54,7 @@ function ModelDefinitionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'hasEmbedding': json['hasEmbedding'] == null ? undefined : json['hasEmbedding'],
|
|
55
55
|
'hasSpeechToText': json['hasSpeechToText'] == null ? undefined : json['hasSpeechToText'],
|
|
56
56
|
'hasOcr': json['hasOcr'] == null ? undefined : json['hasOcr'],
|
|
57
|
+
'hasDecision': json['hasDecision'] == null ? undefined : json['hasDecision'],
|
|
57
58
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
58
59
|
'inputTokenPrice': json['inputTokenPrice'] == null ? undefined : json['inputTokenPrice'],
|
|
59
60
|
'outputTokenPrice': json['outputTokenPrice'] == null ? undefined : json['outputTokenPrice'],
|
|
@@ -79,6 +80,7 @@ function ModelDefinitionUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
80
|
'hasEmbedding': value['hasEmbedding'],
|
|
80
81
|
'hasSpeechToText': value['hasSpeechToText'],
|
|
81
82
|
'hasOcr': value['hasOcr'],
|
|
83
|
+
'hasDecision': value['hasDecision'],
|
|
82
84
|
'maxTokens': value['maxTokens'],
|
|
83
85
|
'inputTokenPrice': value['inputTokenPrice'],
|
|
84
86
|
'outputTokenPrice': value['outputTokenPrice'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -103,6 +103,13 @@ export * from './AiGatewayModelTokenQuotaUio';
|
|
|
103
103
|
export * from './AiGatewayModelUio';
|
|
104
104
|
export * from './AiGatewaySettingsUio';
|
|
105
105
|
export * from './AiGatewaySettingsUpdateRequestUio';
|
|
106
|
+
export * from './AiGatewaySystemOneAnswerUio';
|
|
107
|
+
export * from './AiGatewaySystemOneQuestionCriteriaUio';
|
|
108
|
+
export * from './AiGatewaySystemOneQuestionUio';
|
|
109
|
+
export * from './AiGatewaySystemOneRequestStateUio';
|
|
110
|
+
export * from './AiGatewaySystemOneRequestUio';
|
|
111
|
+
export * from './AiGatewaySystemOneResponseUio';
|
|
112
|
+
export * from './AiGatewaySystemOneResponseUsageUio';
|
|
106
113
|
export * from './AiGatewayUsageBreakdownItemUio';
|
|
107
114
|
export * from './AiGatewayUsageCostUio';
|
|
108
115
|
export * from './AiGatewayUsagePointUio';
|
package/dist/models/index.js
CHANGED
|
@@ -121,6 +121,13 @@ __exportStar(require("./AiGatewayModelTokenQuotaUio"), exports);
|
|
|
121
121
|
__exportStar(require("./AiGatewayModelUio"), exports);
|
|
122
122
|
__exportStar(require("./AiGatewaySettingsUio"), exports);
|
|
123
123
|
__exportStar(require("./AiGatewaySettingsUpdateRequestUio"), exports);
|
|
124
|
+
__exportStar(require("./AiGatewaySystemOneAnswerUio"), exports);
|
|
125
|
+
__exportStar(require("./AiGatewaySystemOneQuestionCriteriaUio"), exports);
|
|
126
|
+
__exportStar(require("./AiGatewaySystemOneQuestionUio"), exports);
|
|
127
|
+
__exportStar(require("./AiGatewaySystemOneRequestStateUio"), exports);
|
|
128
|
+
__exportStar(require("./AiGatewaySystemOneRequestUio"), exports);
|
|
129
|
+
__exportStar(require("./AiGatewaySystemOneResponseUio"), exports);
|
|
130
|
+
__exportStar(require("./AiGatewaySystemOneResponseUsageUio"), exports);
|
|
124
131
|
__exportStar(require("./AiGatewayUsageBreakdownItemUio"), exports);
|
|
125
132
|
__exportStar(require("./AiGatewayUsageCostUio"), exports);
|
|
126
133
|
__exportStar(require("./AiGatewayUsagePointUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -17017,6 +17017,95 @@
|
|
|
17017
17017
|
"tags" : [ "ai-gateway" ]
|
|
17018
17018
|
}
|
|
17019
17019
|
},
|
|
17020
|
+
"/organizations/{organizationId}/ai-gateway/systemone" : {
|
|
17021
|
+
"post" : {
|
|
17022
|
+
"description" : "Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`.\n\nAussi monté sous `/ai-gateway/v1/systemone`, pour qu'un client System One puisse utiliser la passerelle comme URL de base.\n\nToutes les erreurs utilisent l'enveloppe OpenAI `{ error: { message } }`.",
|
|
17023
|
+
"operationId" : "createAiGatewaySystemOneDecision",
|
|
17024
|
+
"parameters" : [ {
|
|
17025
|
+
"description" : "ID of the organization",
|
|
17026
|
+
"in" : "path",
|
|
17027
|
+
"name" : "organizationId",
|
|
17028
|
+
"required" : true,
|
|
17029
|
+
"schema" : {
|
|
17030
|
+
"type" : "string"
|
|
17031
|
+
}
|
|
17032
|
+
} ],
|
|
17033
|
+
"requestBody" : {
|
|
17034
|
+
"content" : {
|
|
17035
|
+
"application/json" : {
|
|
17036
|
+
"schema" : {
|
|
17037
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneRequest"
|
|
17038
|
+
}
|
|
17039
|
+
}
|
|
17040
|
+
},
|
|
17041
|
+
"required" : true
|
|
17042
|
+
},
|
|
17043
|
+
"responses" : {
|
|
17044
|
+
"200" : {
|
|
17045
|
+
"content" : {
|
|
17046
|
+
"application/json" : {
|
|
17047
|
+
"schema" : {
|
|
17048
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneResponse"
|
|
17049
|
+
}
|
|
17050
|
+
}
|
|
17051
|
+
},
|
|
17052
|
+
"description" : "Décision prise"
|
|
17053
|
+
},
|
|
17054
|
+
"400" : {
|
|
17055
|
+
"content" : {
|
|
17056
|
+
"application/json" : {
|
|
17057
|
+
"schema" : {
|
|
17058
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17059
|
+
}
|
|
17060
|
+
}
|
|
17061
|
+
},
|
|
17062
|
+
"description" : "Invalid request body, modèle sans capacité Decision, ou provider qui ne sait pas servir de modèle de décision"
|
|
17063
|
+
},
|
|
17064
|
+
"401" : {
|
|
17065
|
+
"content" : {
|
|
17066
|
+
"application/json" : {
|
|
17067
|
+
"schema" : {
|
|
17068
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17069
|
+
}
|
|
17070
|
+
}
|
|
17071
|
+
},
|
|
17072
|
+
"description" : "Unauthenticated — no caller identity could be established"
|
|
17073
|
+
},
|
|
17074
|
+
"403" : {
|
|
17075
|
+
"content" : {
|
|
17076
|
+
"application/json" : {
|
|
17077
|
+
"schema" : {
|
|
17078
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17079
|
+
}
|
|
17080
|
+
}
|
|
17081
|
+
},
|
|
17082
|
+
"description" : "Forbidden — the caller is not part of the organization"
|
|
17083
|
+
},
|
|
17084
|
+
"404" : {
|
|
17085
|
+
"content" : {
|
|
17086
|
+
"application/json" : {
|
|
17087
|
+
"schema" : {
|
|
17088
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17089
|
+
}
|
|
17090
|
+
}
|
|
17091
|
+
},
|
|
17092
|
+
"description" : "Model not found — aucun provider de l'organisation n'expose ce modèle"
|
|
17093
|
+
},
|
|
17094
|
+
"500" : {
|
|
17095
|
+
"content" : {
|
|
17096
|
+
"application/json" : {
|
|
17097
|
+
"schema" : {
|
|
17098
|
+
"$ref" : "#/components/schemas/AiGatewayError"
|
|
17099
|
+
}
|
|
17100
|
+
}
|
|
17101
|
+
},
|
|
17102
|
+
"description" : "Internal server error"
|
|
17103
|
+
}
|
|
17104
|
+
},
|
|
17105
|
+
"summary" : "Ask a decision model through the AI gateway",
|
|
17106
|
+
"tags" : [ "ai-gateway" ]
|
|
17107
|
+
}
|
|
17108
|
+
},
|
|
17020
17109
|
"/organizations/{organizationId}/ai-gateway/credits" : {
|
|
17021
17110
|
"get" : {
|
|
17022
17111
|
"description" : "Le suivi de crédits n'est pas implémenté sur ce déploiement : l'endpoint répond systématiquement 501 à un appelant autorisé. Réservé pour un usage futur.",
|
|
@@ -28214,6 +28303,10 @@
|
|
|
28214
28303
|
"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`.",
|
|
28215
28304
|
"type" : "boolean"
|
|
28216
28305
|
},
|
|
28306
|
+
"hasDecision" : {
|
|
28307
|
+
"description" : "Modèle de décision (API System One `/v1/systemone`, ou Decisions API d'OpenAI) : il renvoie des probabilités sur des questions typées au lieu de générer du texte. Non conversationnel, accessible uniquement via la ai-gateway (`/ai-gateway/v1/systemone`).",
|
|
28308
|
+
"type" : "boolean"
|
|
28309
|
+
},
|
|
28217
28310
|
"maxTokens" : {
|
|
28218
28311
|
"minimum" : 1,
|
|
28219
28312
|
"type" : "integer"
|
|
@@ -32021,6 +32114,96 @@
|
|
|
32021
32114
|
},
|
|
32022
32115
|
"type" : "object"
|
|
32023
32116
|
},
|
|
32117
|
+
"AiGatewaySystemOneRequest" : {
|
|
32118
|
+
"additionalProperties" : false,
|
|
32119
|
+
"properties" : {
|
|
32120
|
+
"model" : {
|
|
32121
|
+
"minLength" : 1,
|
|
32122
|
+
"type" : "string"
|
|
32123
|
+
},
|
|
32124
|
+
"state" : {
|
|
32125
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneRequest_state"
|
|
32126
|
+
},
|
|
32127
|
+
"images" : {
|
|
32128
|
+
"description" : "Images encodées en base64 (PNG, JPEG ou WebP), partagées par toutes les questions.",
|
|
32129
|
+
"items" : {
|
|
32130
|
+
"type" : "string"
|
|
32131
|
+
},
|
|
32132
|
+
"type" : "array"
|
|
32133
|
+
},
|
|
32134
|
+
"questions" : {
|
|
32135
|
+
"additionalProperties" : {
|
|
32136
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneQuestion"
|
|
32137
|
+
},
|
|
32138
|
+
"minProperties" : 1,
|
|
32139
|
+
"type" : "object"
|
|
32140
|
+
}
|
|
32141
|
+
},
|
|
32142
|
+
"required" : [ "model", "questions", "state" ],
|
|
32143
|
+
"type" : "object"
|
|
32144
|
+
},
|
|
32145
|
+
"AiGatewaySystemOneQuestion" : {
|
|
32146
|
+
"additionalProperties" : false,
|
|
32147
|
+
"properties" : {
|
|
32148
|
+
"type" : {
|
|
32149
|
+
"enum" : [ "choice", "noul", "score" ],
|
|
32150
|
+
"type" : "string"
|
|
32151
|
+
},
|
|
32152
|
+
"instructions" : {
|
|
32153
|
+
"minLength" : 1,
|
|
32154
|
+
"type" : "string"
|
|
32155
|
+
},
|
|
32156
|
+
"criteria" : {
|
|
32157
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneQuestion_criteria"
|
|
32158
|
+
}
|
|
32159
|
+
},
|
|
32160
|
+
"required" : [ "instructions", "type" ],
|
|
32161
|
+
"type" : "object"
|
|
32162
|
+
},
|
|
32163
|
+
"AiGatewaySystemOneResponse" : {
|
|
32164
|
+
"properties" : {
|
|
32165
|
+
"model" : {
|
|
32166
|
+
"type" : "string"
|
|
32167
|
+
},
|
|
32168
|
+
"answers" : {
|
|
32169
|
+
"additionalProperties" : {
|
|
32170
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneAnswer"
|
|
32171
|
+
},
|
|
32172
|
+
"type" : "object"
|
|
32173
|
+
},
|
|
32174
|
+
"usage" : {
|
|
32175
|
+
"$ref" : "#/components/schemas/AiGatewaySystemOneResponse_usage"
|
|
32176
|
+
}
|
|
32177
|
+
},
|
|
32178
|
+
"required" : [ "answers", "model", "usage" ],
|
|
32179
|
+
"type" : "object"
|
|
32180
|
+
},
|
|
32181
|
+
"AiGatewaySystemOneAnswer" : {
|
|
32182
|
+
"additionalProperties" : true,
|
|
32183
|
+
"properties" : {
|
|
32184
|
+
"type" : {
|
|
32185
|
+
"enum" : [ "choice", "noul", "score" ],
|
|
32186
|
+
"type" : "string"
|
|
32187
|
+
},
|
|
32188
|
+
"choice" : {
|
|
32189
|
+
"type" : "string"
|
|
32190
|
+
},
|
|
32191
|
+
"noul" : {
|
|
32192
|
+
"type" : "number"
|
|
32193
|
+
},
|
|
32194
|
+
"score" : {
|
|
32195
|
+
"type" : "number"
|
|
32196
|
+
},
|
|
32197
|
+
"probabilities" : {
|
|
32198
|
+
"additionalProperties" : {
|
|
32199
|
+
"type" : "number"
|
|
32200
|
+
},
|
|
32201
|
+
"type" : "object"
|
|
32202
|
+
}
|
|
32203
|
+
},
|
|
32204
|
+
"required" : [ "type" ],
|
|
32205
|
+
"type" : "object"
|
|
32206
|
+
},
|
|
32024
32207
|
"AiGatewayUsage" : {
|
|
32025
32208
|
"properties" : {
|
|
32026
32209
|
"total" : {
|
|
@@ -38771,6 +38954,39 @@
|
|
|
38771
38954
|
"required" : [ "created", "id", "object", "owned_by" ],
|
|
38772
38955
|
"type" : "object"
|
|
38773
38956
|
},
|
|
38957
|
+
"AiGatewaySystemOneRequest_state" : {
|
|
38958
|
+
"description" : "Entrée sur laquelle décider, texte ou objet JSON.",
|
|
38959
|
+
"oneOf" : [ {
|
|
38960
|
+
"type" : "string"
|
|
38961
|
+
}, {
|
|
38962
|
+
"additionalProperties" : true,
|
|
38963
|
+
"type" : "object"
|
|
38964
|
+
} ]
|
|
38965
|
+
},
|
|
38966
|
+
"AiGatewaySystemOneQuestion_criteria" : {
|
|
38967
|
+
"oneOf" : [ {
|
|
38968
|
+
"additionalProperties" : {
|
|
38969
|
+
"type" : "string"
|
|
38970
|
+
},
|
|
38971
|
+
"type" : "object"
|
|
38972
|
+
}, {
|
|
38973
|
+
"items" : {
|
|
38974
|
+
"type" : "string"
|
|
38975
|
+
},
|
|
38976
|
+
"type" : "array"
|
|
38977
|
+
} ]
|
|
38978
|
+
},
|
|
38979
|
+
"AiGatewaySystemOneResponse_usage" : {
|
|
38980
|
+
"properties" : {
|
|
38981
|
+
"input_tokens" : {
|
|
38982
|
+
"type" : "integer"
|
|
38983
|
+
},
|
|
38984
|
+
"output_tokens" : {
|
|
38985
|
+
"type" : "integer"
|
|
38986
|
+
}
|
|
38987
|
+
},
|
|
38988
|
+
"type" : "object"
|
|
38989
|
+
},
|
|
38774
38990
|
"AiGatewayV1ModelEndpoints_data_architecture" : {
|
|
38775
38991
|
"properties" : {
|
|
38776
38992
|
"tokenizer" : {
|