utilitas 1995.2.29 → 1995.2.31
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 +14 -5
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +134 -20
- package/lib/hal.mjs +3 -27
- package/lib/horizon.mjs +3 -0
- package/lib/manifest.mjs +3 -1
- package/lib/speech.mjs +1 -1
- package/lib/utilitas.mjs +7 -4
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -20,17 +20,25 @@ Works in Node.js and modern browsers.
|
|
|
20
20
|
|
|
21
21
|
| symbol | type | params / value |
|
|
22
22
|
| :--- | :--- | :--- |
|
|
23
|
-
| _NEED | Array | OpenAI |
|
|
23
|
+
| _NEED | Array | OpenAI,@google-cloud/vertexai,@google/generative-ai |
|
|
24
24
|
| default | AsyncFunction | options |
|
|
25
|
+
| CODE_INTERPRETER | Object | {"type":"code_interpreter"} |
|
|
26
|
+
| FUNCTION | Object | {"type":"function"} |
|
|
27
|
+
| GPT4 | String | gpt-4 |
|
|
28
|
+
| GPT4_1106 | String | gpt-4-1106-preview |
|
|
29
|
+
| RETRIEVAL | Object | {"type":"retrieval"} |
|
|
25
30
|
| createAssistant | AsyncFunction | options |
|
|
26
31
|
| createMessage | AsyncFunction | threadId, content, options |
|
|
32
|
+
| createOpenAIEmbedding | AsyncFunction | input, options |
|
|
27
33
|
| deleteAllFilesFromAssistant | AsyncFunction | assistantId, options |
|
|
34
|
+
| deleteAssistant | AsyncFunction | assistantId, options |
|
|
28
35
|
| deleteFile | AsyncFunction | file_id, options |
|
|
29
36
|
| deleteFileFromAssistant | AsyncFunction | assistantId, file_id, options |
|
|
30
37
|
| deleteThread | AsyncFunction | threadId, options |
|
|
31
38
|
| detachFileFromAssistant | AsyncFunction | assistantId, file_id, options |
|
|
32
|
-
| ensureAssistant | AsyncFunction |
|
|
39
|
+
| ensureAssistant | AsyncFunction | |
|
|
33
40
|
| ensureThread | AsyncFunction | |
|
|
41
|
+
| getAssistant | AsyncFunction | assistantId, options |
|
|
34
42
|
| getLatestMessage | AsyncFunction | threadId, options |
|
|
35
43
|
| getRun | AsyncFunction | threadId, runId, options |
|
|
36
44
|
| getThread | AsyncFunction | threadId, options |
|
|
@@ -39,8 +47,11 @@ Works in Node.js and modern browsers.
|
|
|
39
47
|
| listAssistantFiles | AsyncFunction | assistant_id, options |
|
|
40
48
|
| listFiles | AsyncFunction | options |
|
|
41
49
|
| listMessages | AsyncFunction | threadId, o |
|
|
50
|
+
| modifyAssistant | AsyncFunction | assistantId, assistant, options |
|
|
42
51
|
| promptAssistant | AsyncFunction | content, options |
|
|
43
52
|
| promptChatGPT | AsyncFunction | content, options |
|
|
53
|
+
| promptGemini | AsyncFunction | content, options |
|
|
54
|
+
| promptVertex | AsyncFunction | content, options |
|
|
44
55
|
| run | AsyncFunction | assistantId, threadId, options |
|
|
45
56
|
| uploadFile | AsyncFunction | input, options |
|
|
46
57
|
| uploadFileForAssistants | AsyncFunction | content, options |
|
|
@@ -227,15 +238,13 @@ Works in Node.js and modern browsers.
|
|
|
227
238
|
|
|
228
239
|
| symbol | type | params / value |
|
|
229
240
|
| :--- | :--- | :--- |
|
|
230
|
-
| _NEED | Array |
|
|
241
|
+
| _NEED | Array | @waylaidwanderer/chatgpt-api |
|
|
231
242
|
| default | AsyncFunction | |
|
|
232
243
|
| MAX_CONTEXT_TOKENS | Number | 4096 |
|
|
233
244
|
| MAX_PROMPT_TOKENS | Number | 2457 |
|
|
234
245
|
| MAX_RESPONSE_TOKENS | Number | 1639 |
|
|
235
246
|
| countTokens | Function | t |
|
|
236
|
-
| createEmbedding | AsyncFunction | input, options |
|
|
237
247
|
| init | AsyncFunction | |
|
|
238
|
-
| initOpenAI | AsyncFunction | options |
|
|
239
248
|
|
|
240
249
|
### [horizon](./lib/horizon.mjs)
|
|
241
250
|
|