utilitas 1995.2.30 → 1995.2.32
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 +6 -4
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +116 -14
- 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/package.json +3 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ 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
25
|
| CODE_INTERPRETER | Object | {"type":"code_interpreter"} |
|
|
26
26
|
| FUNCTION | Object | {"type":"function"} |
|
|
@@ -28,7 +28,9 @@ Works in Node.js and modern browsers.
|
|
|
28
28
|
| GPT4_1106 | String | gpt-4-1106-preview |
|
|
29
29
|
| RETRIEVAL | Object | {"type":"retrieval"} |
|
|
30
30
|
| createAssistant | AsyncFunction | options |
|
|
31
|
+
| createGeminiEmbedding | AsyncFunction | input, options |
|
|
31
32
|
| createMessage | AsyncFunction | threadId, content, options |
|
|
33
|
+
| createOpenAIEmbedding | AsyncFunction | input, options |
|
|
32
34
|
| deleteAllFilesFromAssistant | AsyncFunction | assistantId, options |
|
|
33
35
|
| deleteAssistant | AsyncFunction | assistantId, options |
|
|
34
36
|
| deleteFile | AsyncFunction | file_id, options |
|
|
@@ -49,6 +51,8 @@ Works in Node.js and modern browsers.
|
|
|
49
51
|
| modifyAssistant | AsyncFunction | assistantId, assistant, options |
|
|
50
52
|
| promptAssistant | AsyncFunction | content, options |
|
|
51
53
|
| promptChatGPT | AsyncFunction | content, options |
|
|
54
|
+
| promptGemini | AsyncFunction | content, options |
|
|
55
|
+
| promptVertex | AsyncFunction | content, options |
|
|
52
56
|
| run | AsyncFunction | assistantId, threadId, options |
|
|
53
57
|
| uploadFile | AsyncFunction | input, options |
|
|
54
58
|
| uploadFileForAssistants | AsyncFunction | content, options |
|
|
@@ -235,15 +239,13 @@ Works in Node.js and modern browsers.
|
|
|
235
239
|
|
|
236
240
|
| symbol | type | params / value |
|
|
237
241
|
| :--- | :--- | :--- |
|
|
238
|
-
| _NEED | Array |
|
|
242
|
+
| _NEED | Array | @waylaidwanderer/chatgpt-api |
|
|
239
243
|
| default | AsyncFunction | |
|
|
240
244
|
| MAX_CONTEXT_TOKENS | Number | 4096 |
|
|
241
245
|
| MAX_PROMPT_TOKENS | Number | 2457 |
|
|
242
246
|
| MAX_RESPONSE_TOKENS | Number | 1639 |
|
|
243
247
|
| countTokens | Function | t |
|
|
244
|
-
| createEmbedding | AsyncFunction | input, options |
|
|
245
248
|
| init | AsyncFunction | |
|
|
246
|
-
| initOpenAI | AsyncFunction | options |
|
|
247
249
|
|
|
248
250
|
### [horizon](./lib/horizon.mjs)
|
|
249
251
|
|