@app-studio/web 0.3.65 → 0.3.66
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/bot/FileHandler.d.ts +4 -3
- package/dist/bot/OpenAIConnector.d.ts +4 -3
- package/dist/components/Form/TextField/examples/index.d.ts +1 -1
- package/dist/web.cjs.development.js +1 -5
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +1 -5
- package/dist/web.esm.js.map +1 -1
- package/package.json +22 -24
- /package/dist/components/Form/TextField/examples/{colorScheme.d.ts → ColorScheme.d.ts} +0 -0
|
@@ -3,6 +3,7 @@ uploadFile : Méthode pour uploader un fichier sur OpenAI. Prend le chemin du fi
|
|
|
3
3
|
deleteFile : Méthode pour supprimer un fichier de OpenAI en utilisant son ID.
|
|
4
4
|
listFiles : Méthode pour lister tous les fichiers disponibles sur votre compte OpenAI.
|
|
5
5
|
*/
|
|
6
|
+
import { OpenAI } from 'openai';
|
|
6
7
|
export declare class FileHandler {
|
|
7
8
|
private readonly openai;
|
|
8
9
|
constructor(apiKey: string, organization: string);
|
|
@@ -12,7 +13,7 @@ export declare class FileHandler {
|
|
|
12
13
|
writeWithoutCheck(filePath: string, content: string): void;
|
|
13
14
|
pathExists(filePath: string): boolean;
|
|
14
15
|
readComponentPropsFromJson: (filePath: string) => Record<string, any>;
|
|
15
|
-
uploadFile(filePath: string, purpose: 'fine-tune' | 'assistants'): Promise<
|
|
16
|
-
deleteFile(fileId: string): Promise<
|
|
17
|
-
listFiles(): Promise<
|
|
16
|
+
uploadFile(filePath: string, purpose: 'fine-tune' | 'assistants'): Promise<string>;
|
|
17
|
+
deleteFile(fileId: string): Promise<boolean>;
|
|
18
|
+
listFiles(): Promise<OpenAI.Files.FileObject[]>;
|
|
18
19
|
}
|
|
@@ -6,6 +6,7 @@ createThread : Crée un nouveau thread pour une conversation avec l'assistant.
|
|
|
6
6
|
addMessageToThread : Ajoute un message au thread spécifié. Utile pour envoyer des prompts ou des questions.
|
|
7
7
|
runAssistant : Exécute l'assistant sur le thread donné et attend la réponse. Récupère et retourne la réponse de l'assistant.
|
|
8
8
|
*/
|
|
9
|
+
import { OpenAI } from 'openai';
|
|
9
10
|
import { Assistant, Thread } from 'openai/resources/beta';
|
|
10
11
|
import { MessageCreateParams, ThreadMessage } from 'openai/resources/beta/threads';
|
|
11
12
|
export declare class OpenAIConnector {
|
|
@@ -13,11 +14,11 @@ export declare class OpenAIConnector {
|
|
|
13
14
|
private readonly organization;
|
|
14
15
|
private readonly openai;
|
|
15
16
|
constructor(apiKey: string, organization: string);
|
|
16
|
-
sendChatMessage(model: string, messages: MessageCreateParams[]): Promise<
|
|
17
|
+
sendChatMessage(model: string, messages: MessageCreateParams[]): Promise<OpenAI.Chat.Completions.ChatCompletion>;
|
|
17
18
|
createAssistant(instructions: string, name: string, fileIds: string[]): Promise<Assistant>;
|
|
18
19
|
createAssistantFiles(assistantId: string, filesIds: string[]): Promise<Assistant>;
|
|
19
|
-
deleteAssistantFiles(assistantId: string, AssistantFileId: string): Promise<
|
|
20
|
-
getAssistantFiles(assistantId: string): Promise<
|
|
20
|
+
deleteAssistantFiles(assistantId: string, AssistantFileId: string): Promise<OpenAI.Beta.Assistants.Files.FileDeleteResponse>;
|
|
21
|
+
getAssistantFiles(assistantId: string): Promise<OpenAI.Beta.Assistants.Files.AssistantFilesPage>;
|
|
21
22
|
createThread(): Promise<Thread>;
|
|
22
23
|
addMessageToThread(threadId: string, message: MessageCreateParams): Promise<ThreadMessage>;
|
|
23
24
|
runAssistant(assistantId: string, threadId: string): Promise<any>;
|
|
@@ -428,7 +428,7 @@ var IconSizes = {
|
|
|
428
428
|
'6xl': 64
|
|
429
429
|
};
|
|
430
430
|
|
|
431
|
-
var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "
|
|
431
|
+
var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
|
|
432
432
|
var LinkView = function LinkView(_ref) {
|
|
433
433
|
var children = _ref.children,
|
|
434
434
|
_ref$href = _ref.href,
|
|
@@ -441,8 +441,6 @@ var LinkView = function LinkView(_ref) {
|
|
|
441
441
|
isHovered = _ref$isHovered === void 0 ? false : _ref$isHovered,
|
|
442
442
|
_ref$isExternal = _ref.isExternal,
|
|
443
443
|
isExternal = _ref$isExternal === void 0 ? false : _ref$isExternal,
|
|
444
|
-
_ref$colorScheme = _ref.colorScheme,
|
|
445
|
-
colorScheme = _ref$colorScheme === void 0 ? '#0072F5' : _ref$colorScheme,
|
|
446
444
|
_ref$styles = _ref.styles,
|
|
447
445
|
styles = _ref$styles === void 0 ? {
|
|
448
446
|
icon: {},
|
|
@@ -458,7 +456,6 @@ var LinkView = function LinkView(_ref) {
|
|
|
458
456
|
to: href,
|
|
459
457
|
target: isExternal ? '_blank' : '_self'
|
|
460
458
|
}, React__default.createElement(appStudio.Element, Object.assign({
|
|
461
|
-
color: colorScheme,
|
|
462
459
|
onMouseEnter: handleHover,
|
|
463
460
|
onMouseLeave: handleHover,
|
|
464
461
|
textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
|
|
@@ -467,7 +464,6 @@ var LinkView = function LinkView(_ref) {
|
|
|
467
464
|
alignItems: "center",
|
|
468
465
|
wrap: "nowrap"
|
|
469
466
|
}, children, isExternal && React__default.createElement(ExternalLinkSvg, {
|
|
470
|
-
color: colorScheme,
|
|
471
467
|
size: IconSizes[iconSize],
|
|
472
468
|
style: styles.icon
|
|
473
469
|
}))));
|