utilitas 1995.2.35 → 1995.2.37
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 +19 -6
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +379 -121
- package/lib/event.mjs +2 -2
- package/lib/manifest.mjs +2 -1
- package/lib/speech.mjs +6 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -20,15 +20,25 @@ Works in Node.js and modern browsers.
|
|
|
20
20
|
|
|
21
21
|
| symbol | type | params / value |
|
|
22
22
|
| :--- | :--- | :--- |
|
|
23
|
-
| _NEED | Array | @google-cloud/aiplatform,@google-cloud/vertexai,@google/generative-ai,OpenAI |
|
|
23
|
+
| _NEED | Array | @google-cloud/aiplatform,@google-cloud/vertexai,@google/generative-ai,js-tiktoken,OpenAI |
|
|
24
24
|
| default | AsyncFunction | options |
|
|
25
25
|
| CODE_INTERPRETER | Object | {"type":"code_interpreter"} |
|
|
26
|
-
|
|
|
26
|
+
| DEFAULT_MODELS | Object | {"CHATGPT":"gpt-3.5-turbo","ASSISTANT":"gpt-3.5-turbo","VERTEX":"gemini-pro-vision","GEMINI":"gemini-pro","OPENAI_EMBEDDING":"text-embedding-ada-002","GEMINI_EMEDDING":"embedding-001","VERTEX_EMEDDING":"textembedding-gecko-multilingual@001","OPENAI_TRAINING":"gpt-3.5-turbo-1106"} |
|
|
27
|
+
| EMBEDDING_001 | String | embedding-001 |
|
|
28
|
+
| EMBEDDING_GECKO_001 | String | textembedding-gecko@001 |
|
|
29
|
+
| EMBEDDING_GECKO_002 | String | textembedding-gecko@002 |
|
|
30
|
+
| EMBEDDING_GECKO_ML001 | String | textembedding-gecko-multilingual@001 |
|
|
27
31
|
| FUNCTION | Object | {"type":"function"} |
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
32
|
+
| GEMINI_PRO | String | gemini-pro |
|
|
33
|
+
| GEMINI_PRO_VISION | String | gemini-pro-vision |
|
|
34
|
+
| GPT_35_TURBO | String | gpt-3.5-turbo |
|
|
35
|
+
| GPT_35_TURBO_1106 | String | gpt-3.5-turbo-1106 |
|
|
36
|
+
| GPT_4 | String | gpt-4 |
|
|
37
|
+
| GPT_4_1106 | String | gpt-4-1106 |
|
|
38
|
+
| GPT_4_VISION | String | gpt-4-1106-preview |
|
|
39
|
+
| MODELS | Object | {"gpt-3.5-turbo":{"contextWindow":4096,"tokenLimitsTPM":160000,"requestLimitsRPM":5000,"trainingData":"Sep 2021","name":"gpt-3.5-turbo","maximumOutputTokens":1639,"maximumInputTokens":2457,"tokenLimitsTPD":230400000,"requestLimitsRPD":7200000,"requestCapacityRPM":66},"gpt-3.5-turbo-1106":{"contextWindow":16385,"maximumOutputTokens":4096,"tokenLimitsTPM":160000,"requestLimitsRPM":5000,"trainingData":"Sep 2021","name":"gpt-3.5-turbo-1106","maximumInputTokens":12289,"tokenLimitsTPD":230400000,"requestLimitsRPD":7200000,"requestCapacityRPM":14},"gpt-4":{"contextWindow":8192,"tokenLimitsTPM":80000,"requestLimitsRPM":5000,"trainingData":"Sep 2021","name":"gpt-4","maximumOutputTokens":3277,"maximumInputTokens":4915,"tokenLimitsTPD":115200000,"requestLimitsRPD":7200000,"requestCapacityRPM":17},"gpt-4-1106":{"contextWindow":128000,"maximumOutputTokens":4096,"tokenLimitsTPM":300000,"tokenLimitsTPD":5000000,"requestLimitsRPM":5000,"trainingData":"Apr 2023","name":"gpt-4-1106","maximumInputTokens":123904,"requestLimitsRPD":7200000,"requestCapacityRPM":3},"gpt-4-1106-preview":{"contextWindow":128000,"maximumOutputTokens":4096,"tokenLimitsTPM":40000,"requestLimitsRPM":120,"requestLimitsRPD":1500,"trainingData":"Apr 2023","name":"gpt-4-1106-preview","maximumInputTokens":123904,"tokenLimitsTPD":57600000,"requestCapacityRPM":1},"text-embedding-ada-002":{"contextWindow":5000000,"requestLimitsRPM":5000,"trainingData":"Oct 2019","name":"text-embedding-ada-002"}} |
|
|
31
40
|
| RETRIEVAL | Object | {"type":"retrieval"} |
|
|
41
|
+
| TEXT_EMBEDDING_ADA_002 | String | text-embedding-ada-002 |
|
|
32
42
|
| buildGptTrainingCase | Function | prompt, response, options |
|
|
33
43
|
| buildGptTrainingCases | Function | cases, opts |
|
|
34
44
|
| cancelGptFineTuningJob | AsyncFunction | job_id, options |
|
|
@@ -52,12 +62,14 @@ Works in Node.js and modern browsers.
|
|
|
52
62
|
| getRun | AsyncFunction | threadId, runId, options |
|
|
53
63
|
| getThread | AsyncFunction | threadId, options |
|
|
54
64
|
| init | AsyncFunction | options |
|
|
65
|
+
| initChat | AsyncFunction | options |
|
|
55
66
|
| listAssistant | AsyncFunction | options |
|
|
56
67
|
| listAssistantFiles | AsyncFunction | assistant_id, options |
|
|
57
68
|
| listFiles | AsyncFunction | options |
|
|
58
69
|
| listGptFineTuningEvents | AsyncFunction | job_id, options |
|
|
59
70
|
| listGptFineTuningJobs | AsyncFunction | options |
|
|
60
|
-
| listMessages | AsyncFunction | threadId,
|
|
71
|
+
| listMessages | AsyncFunction | threadId, options |
|
|
72
|
+
| listOpenAIModels | AsyncFunction | options |
|
|
61
73
|
| modifyAssistant | AsyncFunction | assistantId, assistant, options |
|
|
62
74
|
| promptAssistant | AsyncFunction | content, options |
|
|
63
75
|
| promptChatGPT | AsyncFunction | content, options |
|
|
@@ -65,6 +77,7 @@ Works in Node.js and modern browsers.
|
|
|
65
77
|
| promptVertex | AsyncFunction | content, options |
|
|
66
78
|
| run | AsyncFunction | assistantId, threadId, options |
|
|
67
79
|
| tailGptFineTuningEvents | AsyncFunction | job_id, options |
|
|
80
|
+
| talk | AsyncFunction | input, options |
|
|
68
81
|
| uploadFile | AsyncFunction | input, options |
|
|
69
82
|
| uploadFileForAssistants | AsyncFunction | content, options |
|
|
70
83
|
| uploadFileForFineTuning | AsyncFunction | content, options |
|