@digipair/skill-openai 0.8.10 → 0.8.12
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/index.cjs.js +3187 -2985
- package/index.esm.js +3187 -2986
- package/libs/skill-openai/src/lib/skill-openai.d.ts +2 -1
- package/package.json +1 -1
- package/schema.json +55 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { OpenAI, OpenAIEmbeddings } from '@langchain/openai';
|
|
1
|
+
import { AzureOpenAI, OpenAI, OpenAIEmbeddings } from '@langchain/openai';
|
|
2
2
|
import { PinsSettings } from '@digipair/engine';
|
|
3
3
|
export declare const model: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<OpenAI<import("@langchain/openai").OpenAICallOptions>>;
|
|
4
|
+
export declare const modelAzure: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<AzureOpenAI>;
|
|
4
5
|
export declare const embeddings: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<OpenAIEmbeddings>;
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -54,6 +54,61 @@
|
|
|
54
54
|
"x-events": []
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
+
"/modelAzure": {
|
|
58
|
+
"post": {
|
|
59
|
+
"tags": ["service"],
|
|
60
|
+
"summary": "Modèle LLM OpenAI sur Azure",
|
|
61
|
+
"description": "Modèle LLM OpenAI sur Azure",
|
|
62
|
+
"parameters": [
|
|
63
|
+
{
|
|
64
|
+
"name": "temperature",
|
|
65
|
+
"summary": "Temperature",
|
|
66
|
+
"required": false,
|
|
67
|
+
"description": "Temperature du model LLM",
|
|
68
|
+
"schema": {
|
|
69
|
+
"type": "number"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "azureOpenAIApiKey",
|
|
74
|
+
"summary": "API Key",
|
|
75
|
+
"required": false,
|
|
76
|
+
"description": "API Key de l'instance Azure OpenAI",
|
|
77
|
+
"schema": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "azureOpenAIApiInstanceName",
|
|
83
|
+
"summary": "Nom de l'instance",
|
|
84
|
+
"required": false,
|
|
85
|
+
"description": "Nom de l'instance Azure OpenAI",
|
|
86
|
+
"schema": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "azureOpenAIApiDeploymentName",
|
|
92
|
+
"summary": "Nom du déploiement",
|
|
93
|
+
"required": false,
|
|
94
|
+
"description": "Nom du déploiement Azure OpenAI",
|
|
95
|
+
"schema": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "azureOpenAIApiVersion",
|
|
101
|
+
"summary": "Version",
|
|
102
|
+
"required": false,
|
|
103
|
+
"description": "Version de l'API Azure OpenAI",
|
|
104
|
+
"schema": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"x-events": []
|
|
110
|
+
}
|
|
111
|
+
},
|
|
57
112
|
"/embeddings": {
|
|
58
113
|
"post": {
|
|
59
114
|
"tags": ["service"],
|