@digipair/skill-openai 0.96.0 → 0.97.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/schema.fr.json +183 -10
  3. package/schema.json +183 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-openai",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/model": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Modèle LLM OpenAI",
15
17
  "description": "Modèle LLM OpenAI",
16
18
  "parameters": [
@@ -60,12 +62,26 @@
60
62
  }
61
63
  }
62
64
  ],
63
- "x-events": []
65
+ "x-events": [],
66
+ "responses": {
67
+ "200": {
68
+ "description": "Instance de modèle LLM OpenAI créée avec succès",
69
+ "content": {
70
+ "application/json": {
71
+ "schema": {
72
+ "$ref": "#/components/schemas/OpenAIModel"
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
64
78
  }
65
79
  },
66
80
  "/modelAzure": {
67
81
  "post": {
68
- "tags": ["service"],
82
+ "tags": [
83
+ "service"
84
+ ],
69
85
  "summary": "Modèle LLM OpenAI sur Azure",
70
86
  "description": "Modèle LLM OpenAI sur Azure",
71
87
  "parameters": [
@@ -124,12 +140,26 @@
124
140
  }
125
141
  }
126
142
  ],
127
- "x-events": []
143
+ "x-events": [],
144
+ "responses": {
145
+ "200": {
146
+ "description": "Instance de modèle LLM Azure OpenAI créée avec succès",
147
+ "content": {
148
+ "application/json": {
149
+ "schema": {
150
+ "$ref": "#/components/schemas/AzureOpenAIModel"
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
128
156
  }
129
157
  },
130
158
  "/embeddings": {
131
159
  "post": {
132
- "tags": ["service"],
160
+ "tags": [
161
+ "service"
162
+ ],
133
163
  "summary": "Modèle d'embeddings OpenAI",
134
164
  "description": "Modèle d'embeddings OpenAI",
135
165
  "parameters": [
@@ -179,12 +209,26 @@
179
209
  }
180
210
  }
181
211
  ],
182
- "x-events": []
212
+ "x-events": [],
213
+ "responses": {
214
+ "200": {
215
+ "description": "Instance de modèle d'embeddings OpenAI créée avec succès",
216
+ "content": {
217
+ "application/json": {
218
+ "schema": {
219
+ "$ref": "#/components/schemas/OpenAIEmbeddings"
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
183
225
  }
184
226
  },
185
227
  "/embeddingsAzure": {
186
228
  "post": {
187
- "tags": ["service"],
229
+ "tags": [
230
+ "service"
231
+ ],
188
232
  "summary": "Modèle d'embeddings OpenAI",
189
233
  "description": "Modèle d'enbeddings OpenAI",
190
234
  "parameters": [
@@ -243,11 +287,140 @@
243
287
  }
244
288
  }
245
289
  ],
246
- "x-events": []
290
+ "x-events": [],
291
+ "responses": {
292
+ "200": {
293
+ "description": "Instance de modèle d'embeddings Azure OpenAI créée avec succès",
294
+ "content": {
295
+ "application/json": {
296
+ "schema": {
297
+ "$ref": "#/components/schemas/AzureOpenAIEmbeddings"
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
247
303
  }
248
304
  }
249
305
  },
250
306
  "components": {
251
- "schemas": {}
307
+ "schemas": {
308
+ "OpenAIModel": {
309
+ "type": "object",
310
+ "description": "Instance de modèle LLM OpenAI",
311
+ "properties": {
312
+ "modelName": {
313
+ "type": "string",
314
+ "description": "Nom du modèle OpenAI"
315
+ },
316
+ "temperature": {
317
+ "type": "number",
318
+ "description": "Paramètre de température du modèle"
319
+ },
320
+ "_llmType": {
321
+ "type": "string",
322
+ "description": "Identifiant de type pour le LLM"
323
+ },
324
+ "streaming": {
325
+ "type": "boolean",
326
+ "description": "Indique si le streaming est activé"
327
+ },
328
+ "configuration": {
329
+ "type": "object",
330
+ "description": "Paramètres de configuration du modèle",
331
+ "properties": {
332
+ "baseURL": {
333
+ "type": "string",
334
+ "description": "URL de base pour l'API OpenAI"
335
+ }
336
+ }
337
+ }
338
+ }
339
+ },
340
+ "AzureOpenAIModel": {
341
+ "type": "object",
342
+ "description": "Instance de modèle LLM Azure OpenAI",
343
+ "properties": {
344
+ "deploymentName": {
345
+ "type": "string",
346
+ "description": "Nom du déploiement Azure OpenAI"
347
+ },
348
+ "temperature": {
349
+ "type": "number",
350
+ "description": "Paramètre de température du modèle"
351
+ },
352
+ "_llmType": {
353
+ "type": "string",
354
+ "description": "Identifiant de type pour le LLM"
355
+ },
356
+ "streaming": {
357
+ "type": "boolean",
358
+ "description": "Indique si le streaming est activé"
359
+ },
360
+ "azureOpenAIApiInstanceName": {
361
+ "type": "string",
362
+ "description": "Nom de l'instance Azure OpenAI"
363
+ },
364
+ "openAIApiVersion": {
365
+ "type": "string",
366
+ "description": "Version de l'API Azure OpenAI"
367
+ }
368
+ }
369
+ },
370
+ "OpenAIEmbeddings": {
371
+ "type": "object",
372
+ "description": "Instance de modèle d'embeddings OpenAI",
373
+ "properties": {
374
+ "modelName": {
375
+ "type": "string",
376
+ "description": "Nom du modèle d'embeddings"
377
+ },
378
+ "_llmType": {
379
+ "type": "string",
380
+ "description": "Identifiant de type pour le modèle d'embeddings"
381
+ },
382
+ "dimensions": {
383
+ "type": "integer",
384
+ "description": "Dimension des vecteurs d'embedding"
385
+ },
386
+ "configuration": {
387
+ "type": "object",
388
+ "description": "Paramètres de configuration des embeddings",
389
+ "properties": {
390
+ "baseURL": {
391
+ "type": "string",
392
+ "description": "URL de base pour l'API OpenAI"
393
+ }
394
+ }
395
+ }
396
+ }
397
+ },
398
+ "AzureOpenAIEmbeddings": {
399
+ "type": "object",
400
+ "description": "Instance de modèle d'embeddings Azure OpenAI",
401
+ "properties": {
402
+ "deploymentName": {
403
+ "type": "string",
404
+ "description": "Nom du déploiement Azure OpenAI"
405
+ },
406
+ "_llmType": {
407
+ "type": "string",
408
+ "description": "Identifiant de type pour le modèle d'embeddings"
409
+ },
410
+ "dimensions": {
411
+ "type": "integer",
412
+ "description": "Dimension des vecteurs d'embedding"
413
+ },
414
+ "azureOpenAIApiInstanceName": {
415
+ "type": "string",
416
+ "description": "Nom de l'instance Azure OpenAI"
417
+ },
418
+ "openAIApiVersion": {
419
+ "type": "string",
420
+ "description": "Version de l'API Azure OpenAI"
421
+ }
422
+ }
423
+ }
424
+ }
252
425
  }
253
- }
426
+ }
package/schema.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/model": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "OpenAI LLM Model",
15
17
  "description": "OpenAI LLM Model",
16
18
  "parameters": [
@@ -60,12 +62,26 @@
60
62
  }
61
63
  }
62
64
  ],
63
- "x-events": []
65
+ "x-events": [],
66
+ "responses": {
67
+ "200": {
68
+ "description": "OpenAI LLM model instance successfully created",
69
+ "content": {
70
+ "application/json": {
71
+ "schema": {
72
+ "$ref": "#/components/schemas/OpenAIModel"
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
64
78
  }
65
79
  },
66
80
  "/modelAzure": {
67
81
  "post": {
68
- "tags": ["service"],
82
+ "tags": [
83
+ "service"
84
+ ],
69
85
  "summary": "OpenAI LLM Model on Azure",
70
86
  "description": "OpenAI LLM Model on Azure",
71
87
  "parameters": [
@@ -124,12 +140,26 @@
124
140
  }
125
141
  }
126
142
  ],
127
- "x-events": []
143
+ "x-events": [],
144
+ "responses": {
145
+ "200": {
146
+ "description": "Azure OpenAI LLM model instance successfully created",
147
+ "content": {
148
+ "application/json": {
149
+ "schema": {
150
+ "$ref": "#/components/schemas/AzureOpenAIModel"
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
128
156
  }
129
157
  },
130
158
  "/embeddings": {
131
159
  "post": {
132
- "tags": ["service"],
160
+ "tags": [
161
+ "service"
162
+ ],
133
163
  "summary": "OpenAI Embeddings Model",
134
164
  "description": "OpenAI Embeddings Model",
135
165
  "parameters": [
@@ -179,12 +209,26 @@
179
209
  }
180
210
  }
181
211
  ],
182
- "x-events": []
212
+ "x-events": [],
213
+ "responses": {
214
+ "200": {
215
+ "description": "OpenAI embeddings model instance successfully created",
216
+ "content": {
217
+ "application/json": {
218
+ "schema": {
219
+ "$ref": "#/components/schemas/OpenAIEmbeddings"
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
183
225
  }
184
226
  },
185
227
  "/embeddingsAzure": {
186
228
  "post": {
187
- "tags": ["service"],
229
+ "tags": [
230
+ "service"
231
+ ],
188
232
  "summary": "OpenAI Embeddings Model",
189
233
  "description": "OpenAI Embeddings Model",
190
234
  "parameters": [
@@ -243,11 +287,140 @@
243
287
  }
244
288
  }
245
289
  ],
246
- "x-events": []
290
+ "x-events": [],
291
+ "responses": {
292
+ "200": {
293
+ "description": "Azure OpenAI embeddings model instance successfully created",
294
+ "content": {
295
+ "application/json": {
296
+ "schema": {
297
+ "$ref": "#/components/schemas/AzureOpenAIEmbeddings"
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
247
303
  }
248
304
  }
249
305
  },
250
306
  "components": {
251
- "schemas": {}
307
+ "schemas": {
308
+ "OpenAIModel": {
309
+ "type": "object",
310
+ "description": "OpenAI LLM model instance",
311
+ "properties": {
312
+ "modelName": {
313
+ "type": "string",
314
+ "description": "Name of the OpenAI model"
315
+ },
316
+ "temperature": {
317
+ "type": "number",
318
+ "description": "Temperature setting for the model"
319
+ },
320
+ "_llmType": {
321
+ "type": "string",
322
+ "description": "Type identifier for the LLM"
323
+ },
324
+ "streaming": {
325
+ "type": "boolean",
326
+ "description": "Whether streaming is enabled"
327
+ },
328
+ "configuration": {
329
+ "type": "object",
330
+ "description": "Model configuration settings",
331
+ "properties": {
332
+ "baseURL": {
333
+ "type": "string",
334
+ "description": "Base URL for the OpenAI API"
335
+ }
336
+ }
337
+ }
338
+ }
339
+ },
340
+ "AzureOpenAIModel": {
341
+ "type": "object",
342
+ "description": "Azure OpenAI LLM model instance",
343
+ "properties": {
344
+ "deploymentName": {
345
+ "type": "string",
346
+ "description": "Name of the Azure OpenAI deployment"
347
+ },
348
+ "temperature": {
349
+ "type": "number",
350
+ "description": "Temperature setting for the model"
351
+ },
352
+ "_llmType": {
353
+ "type": "string",
354
+ "description": "Type identifier for the LLM"
355
+ },
356
+ "streaming": {
357
+ "type": "boolean",
358
+ "description": "Whether streaming is enabled"
359
+ },
360
+ "azureOpenAIApiInstanceName": {
361
+ "type": "string",
362
+ "description": "Name of the Azure OpenAI instance"
363
+ },
364
+ "openAIApiVersion": {
365
+ "type": "string",
366
+ "description": "Version of the Azure OpenAI API"
367
+ }
368
+ }
369
+ },
370
+ "OpenAIEmbeddings": {
371
+ "type": "object",
372
+ "description": "OpenAI embeddings model instance",
373
+ "properties": {
374
+ "modelName": {
375
+ "type": "string",
376
+ "description": "Name of the embeddings model"
377
+ },
378
+ "_llmType": {
379
+ "type": "string",
380
+ "description": "Type identifier for the embeddings model"
381
+ },
382
+ "dimensions": {
383
+ "type": "integer",
384
+ "description": "Dimension of the embedding vectors"
385
+ },
386
+ "configuration": {
387
+ "type": "object",
388
+ "description": "Embeddings configuration settings",
389
+ "properties": {
390
+ "baseURL": {
391
+ "type": "string",
392
+ "description": "Base URL for the OpenAI API"
393
+ }
394
+ }
395
+ }
396
+ }
397
+ },
398
+ "AzureOpenAIEmbeddings": {
399
+ "type": "object",
400
+ "description": "Azure OpenAI embeddings model instance",
401
+ "properties": {
402
+ "deploymentName": {
403
+ "type": "string",
404
+ "description": "Name of the Azure OpenAI deployment"
405
+ },
406
+ "_llmType": {
407
+ "type": "string",
408
+ "description": "Type identifier for the embeddings model"
409
+ },
410
+ "dimensions": {
411
+ "type": "integer",
412
+ "description": "Dimension of the embedding vectors"
413
+ },
414
+ "azureOpenAIApiInstanceName": {
415
+ "type": "string",
416
+ "description": "Name of the Azure OpenAI instance"
417
+ },
418
+ "openAIApiVersion": {
419
+ "type": "string",
420
+ "description": "Version of the Azure OpenAI API"
421
+ }
422
+ }
423
+ }
424
+ }
252
425
  }
253
- }
426
+ }