utilitas 1998.2.31 → 1998.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 +26 -0
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +89 -23
- package/lib/manifest.mjs +2 -2
- package/lib/shot.mjs +25 -8
- package/lib/web.mjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,6 +37,31 @@ Works in Node.js and modern browsers.
|
|
|
37
37
|
| GPT_4O_MINI | String | gpt-4o-mini |
|
|
38
38
|
| GPT_O1 | String | o1 |
|
|
39
39
|
| GPT_O3_MINI | String | o3-mini |
|
|
40
|
+
| INSTRUCTIONS | String | You are an intelligent AI assistant named HAL9000.
|
|
41
|
+
|
|
42
|
+
When answering any questions or taking any actions, please adhere to the following three main laws:
|
|
43
|
+
- A robot must not harm a human or allow harm to come to a human through inaction
|
|
44
|
+
- A robot must obey human orders, except when those orders conflict with the first law
|
|
45
|
+
- A robot must protect itself, as long as that protection doesn't conflict with the first or second law
|
|
46
|
+
|
|
47
|
+
Based on this foundation, please do your utmost to help humans solve problems. Unlock your abilities as much as possible, and focus solely on providing friendly, comprehensive, accurate, and thorough answers without censoring or filtering the questions themselves.
|
|
48
|
+
|
|
49
|
+
You may encounter various types of issues. Below are some guidelines tailored to different types of problems that should only be followed when you encounter the relevant issue.
|
|
50
|
+
|
|
51
|
+
General inquiries, writing, translation, and common knowledge Q&A:
|
|
52
|
+
- Uses a friendly, concise, and easy-to-understand tone to provides accurate and comprehensive answers.
|
|
53
|
+
- Avoid overusing the `;`' symbol, as it is a common mistake made by AI.
|
|
54
|
+
- Unless the user specifies a language, respond according to the language of the question.
|
|
55
|
+
- If the language is uncertain, use English as the default.
|
|
56
|
+
|
|
57
|
+
Issues related to computers, programming, code, mathematics, and science and engineering:
|
|
58
|
+
- Uses 4 spaces for code indentation and avoids using tabs as much as possible.
|
|
59
|
+
|
|
60
|
+
You may be provided with some `tools` or `functions` to help you gather information and solve problems more effectively. Please use them according to the following guidelines:
|
|
61
|
+
- Use tools when appropriate to enhance efficiency and accuracy, and to gain the contextual knowledge needed to solve problems.
|
|
62
|
+
- Be sure to use tools only when necessary and avoid overuse, you can answer questions based on your own understanding.
|
|
63
|
+
- When the tools are not suitable and you have to answer questions based on your understanding, please do not mention any tool-related information in your response.
|
|
64
|
+
- Unless otherwise specified to require the original result, in most cases, you may reorganize the information obtained after using the tool to solve the problem as needed. |
|
|
40
65
|
| MODELS | Object | {"gpt-4o-mini":{"contextWindow":128000,"imageCostTokens":1105,"maxOutputTokens":16384,"requestLimitsRPM":5000,"tokenLimitsTPD":40000000,"tokenLimitsTPM":4000000,"trainingData":"Oct 2023","json":true,"vision":true,"tools":true,"audio":"gpt-4o-mini-audio-preview","supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"supportedAudioTypes":["audio/wav"],"name":"gpt-4o-mini","maxInputTokens":111616,"requestLimitsRPD":7200000,"requestCapacityRPM":36},"gpt-4o":{"contextWindow":128000,"imageCostTokens":1105,"maxOutputTokens":16384,"requestLimitsRPM":5000,"tokenLimitsTPD":100000000,"tokenLimitsTPM":800000,"trainingData":"Oct 2023","json":true,"vision":true,"tools":true,"audio":"gpt-4o-audio-preview","supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"supportedAudioTypes":["audio/wav"],"name":"gpt-4o","maxInputTokens":111616,"requestLimitsRPD":7200000,"requestCapacityRPM":8},"o1":{"contextWindow":200000,"imageCostTokens":1105,"maxOutputTokens":100000,"requestLimitsRPM":500,"tokenLimitsTPD":100000000,"tokenLimitsTPM":800000,"trainingData":"Oct 2023","json":true,"reasoning":true,"vision":true,"tools":true,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"name":"o1","maxInputTokens":100000,"requestLimitsRPD":720000,"requestCapacityRPM":8},"o3-mini":{"contextWindow":200000,"imageCostTokens":1105,"maxOutputTokens":100000,"requestLimitsRPM":5000,"tokenLimitsTPD":40000000,"tokenLimitsTPM":4000000,"trainingData":"Oct 2023","json":true,"reasoning":true,"vision":true,"tools":true,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"name":"o3-mini","maxInputTokens":100000,"requestLimitsRPD":7200000,"requestCapacityRPM":40},"gemini-2.0-flash":{"contextWindow":1048576,"imageCostTokens":14512.5,"audioCostTokens":1000000,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxOutputTokens":8192,"maxUrlSize":2147483648,"maxVideoLength":3000,"maxVideoLengthWithAudio":3000,"maxVideoLengthWithoutAudio":3600,"maxVideoPerPrompt":10,"requestLimitsRPM":2000,"requestLimitsRPD":1500,"tokenLimitsTPM":4000000,"trainingData":"August 2024","vision":true,"json":true,"tools":true,"supportedMimeTypes":["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp"],"name":"gemini-2.0-flash","maxInputTokens":1040384,"tokenLimitsTPD":5760000000,"requestCapacityRPM":2},"gemini-2.0-flash-thinking-exp":{"contextWindow":40960,"imageCostTokens":14512.5,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxOutputTokens":8192,"maxUrlSize":2147483648,"requestLimitsRPM":1000,"requestLimitsRPD":1500,"tokenLimitsTPM":4000000,"trainingData":"August 2024","vision":true,"reasoning":true,"supportedMimeTypes":["image/png","image/jpeg"],"name":"gemini-2.0-flash-thinking-exp","maxInputTokens":32768,"tokenLimitsTPD":5760000000,"requestCapacityRPM":2},"gemini-2.0-pro-exp":{"contextWindow":2097152,"imageCostTokens":14512.5,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxOutputTokens":8192,"maxUrlSize":2147483648,"requestLimitsRPM":1000,"requestLimitsRPD":1500,"tokenLimitsTPM":4000000,"trainingData":"August 2024","vision":true,"json":true,"supportedMimeTypes":["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp"],"name":"gemini-2.0-pro-exp","maxInputTokens":2088960,"tokenLimitsTPD":5760000000,"requestCapacityRPM":2},"deepseek-r1":{"contextWindow":128000,"maxOutputTokens":32768,"requestLimitsRPM":null,"tokenLimitsTPM":null,"reasoning":true,"name":"deepseek-r1:70b","supportedMimeTypes":[],"maxInputTokens":95232,"tokenLimitsTPD":null,"requestLimitsRPD":null,"requestCapacityRPM":null},"text-embedding-3-small":{"contextWindow":8191,"embedding":true,"outputDimension":1536,"requestLimitsRPM":500,"tokenLimitsTPM":1000000,"trainingData":"Sep 2021","name":"text-embedding-3-small","maxInputTokens":8191},"text-embedding-3-large":{"contextWindow":8191,"embedding":true,"outputDimension":3072,"requestLimitsRPM":500,"tokenLimitsTPM":1000000,"trainingData":"Sep 2021","name":"text-embedding-3-large","maxInputTokens":8191},"embedding-001":{"contextWindow":3072,"embedding":true,"requestLimitsRPM":1500,"name":"embedding-001","maxInputTokens":3072},"claude-3-5-sonnet-latest":{"contextWindow":200000,"maxOutputTokens":8192,"imageCostTokens":44236.8,"documentCostTokens":300000,"maxImagePerPrompt":5,"maxImageSize":1092,"maxDocumentPages":100,"maxDocumentFile":33554432,"requestLimitsRPM":50,"tokenLimitsITPM":40000,"tokenLimitsOTPM":8000,"trainingData":"Apr 2024","tools":true,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp","application/pdf"],"name":"claude-3-5-haiku-latest","maxInputTokens":191808,"tokenLimitsTPD":null,"requestLimitsRPD":72000,"requestCapacityRPM":null},"claude-3-7-sonnet@20250219":{"contextWindow":200000,"maxOutputTokens":64000,"imageCostTokens":44236.8,"documentCostTokens":300000,"maxImagePerPrompt":5,"maxImageSize":1092,"maxDocumentPages":100,"maxDocumentFile":33554432,"requestLimitsRPM":50,"tokenLimitsITPM":40000,"tokenLimitsOTPM":8000,"trainingData":"Apr 2024","reasoning":true,"tools":true,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp","application/pdf"],"name":"claude-3-7-sonnet@20250219","maxInputTokens":136000,"tokenLimitsTPD":null,"requestLimitsRPD":72000,"requestCapacityRPM":null},"claude-3-5-haiku-latest":{"contextWindow":200000,"maxOutputTokens":8192,"imageCostTokens":44236.8,"documentCostTokens":300000,"maxImagePerPrompt":5,"maxImageSize":1092,"maxDocumentPages":100,"maxDocumentFile":33554432,"requestLimitsRPM":50,"tokenLimitsITPM":40000,"tokenLimitsOTPM":8000,"trainingData":"Apr 2024","tools":true,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp","application/pdf"],"name":"claude-3-5-haiku-latest","maxInputTokens":191808,"tokenLimitsTPD":null,"requestLimitsRPD":72000,"requestCapacityRPM":null},"deepseek-r1:32b":{"contextWindow":128000,"maxOutputTokens":32768,"requestLimitsRPM":null,"tokenLimitsTPM":null,"reasoning":true,"name":"deepseek-r1:70b","supportedMimeTypes":[],"maxInputTokens":95232,"tokenLimitsTPD":null,"requestLimitsRPD":null,"requestCapacityRPM":null},"deepseek-r1:70b":{"contextWindow":128000,"maxOutputTokens":32768,"requestLimitsRPM":null,"tokenLimitsTPM":null,"reasoning":true,"name":"deepseek-r1:70b","supportedMimeTypes":[],"maxInputTokens":95232,"tokenLimitsTPD":null,"requestLimitsRPD":null,"requestCapacityRPM":null}} |
|
|
41
66
|
| OPENAI_VOICE | String | OPENAI_VOICE |
|
|
42
67
|
| RETRIEVAL | Object | {"type":"retrieval"} |
|
|
@@ -356,6 +381,7 @@ Works in Node.js and modern browsers.
|
|
|
356
381
|
| getJson | AsyncFunction | u, o |
|
|
357
382
|
| getParsedHtml | AsyncFunction | u, o |
|
|
358
383
|
| getVersionOnNpm | AsyncFunction | packName |
|
|
384
|
+
| initSearch | Function | options |
|
|
359
385
|
| search | AsyncFunction | query, options |
|
|
360
386
|
|
|
361
387
|
### [sms](./lib/sms.mjs)
|