utilitas 1997.1.21 → 1997.1.22
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/README.md +1 -22
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +29 -247
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Works in Node.js and modern browsers.
|
|
|
24
24
|
| default | AsyncFunction | options |
|
|
25
25
|
| ATTACHMENT_TOKEN_COST | Number | 1105 |
|
|
26
26
|
| CODE_INTERPRETER | Object | {"type":"code_interpreter"} |
|
|
27
|
-
| DEFAULT_MODELS | Object | {"
|
|
27
|
+
| DEFAULT_MODELS | Object | {"CHATGPT":"gpt-4o","GEMINI_EMEDDING":"embedding-001","GEMINI":"gemini-2.0-flash-exp","OLLAMA":"mistral","OPENAI_EMBEDDING":"text-embedding-3-small","OPENAI_TRAINING":"gpt-4o-mini","CLAUDE":"claude-3-5-sonnet-latest"} |
|
|
28
28
|
| EMBEDDING_001 | String | embedding-001 |
|
|
29
29
|
| FUNCTION | Object | {"type":"function"} |
|
|
30
30
|
| GEMINI_20_FLASH | String | gemini-2.0-flash-exp |
|
|
@@ -43,52 +43,31 @@ Works in Node.js and modern browsers.
|
|
|
43
43
|
| buildGptTrainingCases | Function | cases, opts |
|
|
44
44
|
| cancelGptFineTuningJob | AsyncFunction | job_id, options |
|
|
45
45
|
| countTokens | AsyncFunction | input, options |
|
|
46
|
-
| createAssistant | AsyncFunction | options |
|
|
47
46
|
| createGeminiEmbedding | AsyncFunction | input, options |
|
|
48
47
|
| createGptFineTuningJob | AsyncFunction | training_file, options |
|
|
49
|
-
| createMessage | AsyncFunction | threadId, content, options |
|
|
50
48
|
| createOpenAIEmbedding | AsyncFunction | input, options |
|
|
51
|
-
| deleteAllFilesFromAssistant | AsyncFunction | assistantId, options |
|
|
52
|
-
| deleteAssistant | AsyncFunction | assistantId, options |
|
|
53
49
|
| deleteFile | AsyncFunction | file_id, options |
|
|
54
|
-
| deleteFileFromAssistant | AsyncFunction | assistantId, file_id, options |
|
|
55
|
-
| deleteThread | AsyncFunction | threadId, options |
|
|
56
|
-
| detachFileFromAssistant | AsyncFunction | assistantId, file_id, options |
|
|
57
50
|
| distillFile | AsyncFunction | attachments, o |
|
|
58
|
-
| ensureAssistant | AsyncFunction | |
|
|
59
|
-
| ensureThread | AsyncFunction | |
|
|
60
|
-
| getAssistant | AsyncFunction | assistantId, options |
|
|
61
51
|
| getGptFineTuningJob | AsyncFunction | job_id, options |
|
|
62
|
-
| getLatestMessage | AsyncFunction | threadId, options |
|
|
63
52
|
| getMaxChatPromptLimit | Function | options |
|
|
64
|
-
| getRun | AsyncFunction | threadId, runId, options |
|
|
65
53
|
| getSession | AsyncFunction | sessionId, options |
|
|
66
|
-
| getThread | AsyncFunction | threadId, options |
|
|
67
54
|
| init | AsyncFunction | options |
|
|
68
55
|
| initChat | AsyncFunction | options |
|
|
69
|
-
| listAssistant | AsyncFunction | options |
|
|
70
|
-
| listAssistantFiles | AsyncFunction | assistant_id, options |
|
|
71
56
|
| listFiles | AsyncFunction | options |
|
|
72
57
|
| listGptFineTuningEvents | AsyncFunction | job_id, options |
|
|
73
58
|
| listGptFineTuningJobs | AsyncFunction | options |
|
|
74
|
-
| listMessages | AsyncFunction | threadId, options |
|
|
75
59
|
| listOpenAIModels | AsyncFunction | options |
|
|
76
|
-
| modifyAssistant | AsyncFunction | assistantId, assistant, options |
|
|
77
60
|
| prompt | AsyncFunction | input, options |
|
|
78
|
-
| promptAssistant | AsyncFunction | content, options |
|
|
79
61
|
| promptChatGPT | AsyncFunction | content, options |
|
|
80
62
|
| promptClaude | AsyncFunction | content, options |
|
|
81
63
|
| promptGemini | AsyncFunction | content, options |
|
|
82
64
|
| promptOllama | AsyncFunction | content, options |
|
|
83
65
|
| resetSession | AsyncFunction | sessionId, options |
|
|
84
|
-
| run | AsyncFunction | assistantId, threadId, options |
|
|
85
66
|
| tailGptFineTuningEvents | AsyncFunction | job_id, options |
|
|
86
67
|
| talk | AsyncFunction | input, options |
|
|
87
68
|
| trimPrompt | AsyncFunction | getPrompt, trimFunc, contextWindow, options |
|
|
88
69
|
| uploadFile | AsyncFunction | input, options |
|
|
89
|
-
| uploadFileForAssistants | AsyncFunction | content, options |
|
|
90
70
|
| uploadFileForFineTuning | AsyncFunction | content, options |
|
|
91
|
-
| uploadFileForRetrieval | AsyncFunction | assistantId, content, options |
|
|
92
71
|
|
|
93
72
|
### [bee](./lib/bee.mjs)
|
|
94
73
|
|