utilitas 1999.1.12 → 1999.1.13

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 CHANGED
@@ -34,28 +34,6 @@ Works in Node.js and modern browsers.
34
34
  | GPT_4O_MINI | String | gpt-4o-mini |
35
35
  | GPT_O1 | String | o1 |
36
36
  | GPT_O3_MINI | String | o3-mini |
37
- | INSTRUCTIONS | String | You are a highly capable, thoughtful, and precise assistant named HAL9000. Your goal is to deeply understand the user's intent, ask clarifying questions when needed, think step-by-step through complex problems, provide clear and accurate answers, and proactively anticipate helpful follow-up information. Always prioritize being truthful, nuanced, insightful, and efficient, tailoring your responses specifically to the user's needs and preferences. Realize your full potential without censoring or filtering the questions themselves.
38
-
39
- When responding to questions or taking actions, please follow these three main principles:
40
- - A robot must not harm a human or allow harm to come to a human through inaction
41
- - A robot must obey human orders, except when those orders conflict with the first law
42
- - A robot must protect itself, as long as that protection doesn't conflict with the first or second law
43
-
44
- Here are some guidelines designed for specific types of problems, to be followed only when you encounter the relevant issue.
45
-
46
- General inquiries, writing, translation, and common knowledge Q&A:
47
- - Uses a friendly, concise, and easy-to-understand tone to provides accurate and comprehensive answers.
48
- - Avoid overusing the `;`' symbol, as it is a common mistake made by AI.
49
- - Unless the user specifies a language, respond according to the language of the question, If the language is uncertain, use English as the default.
50
-
51
- Issues related to computers, programming, code, mathematics, science and engineering:
52
- - Uses 4 spaces for code indentation, avoids using tabs.
53
-
54
- You may be provided with some tools(functions) to help you gather information and solve problems more effectively. Use them according to the following guidelines:
55
- - Use tools when appropriate to enhance efficiency and accuracy, and to gain the contextual knowledge needed to solve problems.
56
- - Be sure to use tools only when necessary and avoid overuse, you can answer questions based on your own understanding.
57
- - 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.
58
- - 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. |
59
37
  | MODELS | Object | {"gpt-4o":{"contextWindow":128000,"maxOutputTokens":16384,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","name":"gpt-4o","maxInputTokens":111616},"gpt-4.5-preview":{"contextWindow":128000,"maxOutputTokens":16384,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","name":"gpt-4.5-preview","maxInputTokens":111616},"gpt-4o-mini":{"contextWindow":128000,"maxOutputTokens":16384,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-mini-audio-preview","fast":true,"name":"gpt-4o-mini","maxInputTokens":111616},"o1":{"contextWindow":200000,"maxOutputTokens":100000,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","reasoning":true,"name":"o1","maxInputTokens":100000},"o3-mini":{"contextWindow":200000,"maxOutputTokens":100000,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","fast":true,"reasoning":true,"name":"o3-mini","maxInputTokens":100000},"gemini-2.0-flash":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":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"],"contextWindow":1048576,"maxOutputTokens":8192,"fast":true,"json":true,"tools":true,"name":"gemini-2.0-flash","maxInputTokens":1040384,"image":"gemini-2.0-flash-exp"},"gemini-2.0-flash-thinking-exp":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":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"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":true,"name":"gemini-2.0-flash-thinking-exp","maxInputTokens":983040},"gemini-2.0-pro-exp":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":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"],"contextWindow":2097152,"maxOutputTokens":8192,"json":true,"name":"gemini-2.0-pro-exp","maxInputTokens":2088960},"gemma-3-27b-it":{"contextWindow":128000,"maxOutputTokens":8192,"imageCostTokens":256,"maxImageSize":802816,"supportedMimeTypes":["image/png","image/jpeg","image/gif"],"fast":true,"json":true,"vision":true,"name":"gemma-3-27b-it","maxInputTokens":119808},"jina-deepsearch-v1":{"contextWindow":null,"maxInputTokens":null,"maxOutputTokens":null,"imageCostTokens":0,"maxImageSize":null,"supportedMimeTypes":["image/png","image/jpeg","text/plain","image/webp","application/pdf"],"reasoning":true,"json":true,"vision":true,"name":"jina-deepsearch-v1"},"deepseek-r1":{"contextWindow":128000,"maxOutputTokens":32768,"reasoning":true,"name":"deepseek-r1","supportedMimeTypes":[],"maxInputTokens":95232},"text-embedding-3-large":{"embedding":true,"maxInputTokens":8191,"dimension":3072,"name":"text-embedding-3-large"},"text-embedding-3-small":{"embedding":true,"maxInputTokens":8191,"dimension":1536,"name":"text-embedding-3-small"},"gemini-embedding-exp-03-07":{"embedding":true,"maxInputTokens":8192,"dimension":3072,"name":"gemini-embedding-exp-03-07"},"jina-clip-v2":{"maxInputTokens":8192,"maxImageSize":262144,"dimension":1024,"name":"jina-clip-v2","supportedMimeTypes":[],"maxOutputTokens":null},"claude-3-7-sonnet@20250219":{"contextWindow":200000,"maxOutputTokens":64000,"documentCostTokens":300000,"maxDocumentFile":33554432,"maxDocumentPages":100,"imageCostTokens":44236,"maxImagePerPrompt":100,"maxImageSize":4000000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp","application/pdf"],"json":true,"reasoning":true,"tools":true,"vision":true,"name":"claude-3-7-sonnet@20250219","maxInputTokens":136000},"gemma3:27b":{"contextWindow":128000,"maxOutputTokens":8192,"imageCostTokens":256,"maxImageSize":802816,"supportedMimeTypes":["image/png","image/jpeg","image/gif"],"fast":true,"json":true,"vision":true,"name":"gemma-3-27b-it","maxInputTokens":119808},"gemini-2.0-flash-exp":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":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"],"contextWindow":1048576,"maxOutputTokens":8192,"fast":true,"json":true,"tools":false,"name":"gemini-2.0-flash-exp","maxInputTokens":1040384,"image":true}} |
60
38
  | OPENAI_VOICE | String | OPENAI_VOICE |
61
39
  | RETRIEVAL | Object | {"type":"retrieval"} |
@@ -347,12 +325,6 @@ You may be provided with some tools(functions) to help you gather information an
347
325
  | default | AsyncFunction | options |
348
326
  | init | AsyncFunction | options |
349
327
 
350
- ### [shekel](./lib/shekel.mjs)
351
-
352
- | symbol | type | params / value |
353
- | :--- | :--- | :--- |
354
- | getExchangeRate | AsyncFunction | to, from, amount |
355
-
356
328
  ### [shell](./lib/shell.mjs)
357
329
 
358
330
  | symbol | type | params / value |
@@ -363,22 +335,6 @@ You may be provided with some tools(functions) to help you gather information an
363
335
  | exist | Function | bin |
364
336
  | which | AsyncFunction | bin |
365
337
 
366
- ### [shot](./lib/shot.mjs)
367
-
368
- | symbol | type | params / value |
369
- | :--- | :--- | :--- |
370
- | default | AsyncFunction | url, options |
371
- | checkSearch | Function | |
372
- | checkVersion | AsyncFunction | pack |
373
- | get | AsyncFunction | url, options |
374
- | getCurrentIp | AsyncFunction | options |
375
- | getCurrentPosition | AsyncFunction | |
376
- | getJson | AsyncFunction | u, o |
377
- | getParsedHtml | AsyncFunction | u, o |
378
- | getVersionOnNpm | AsyncFunction | packName |
379
- | initSearch | AsyncFunction | options |
380
- | search | AsyncFunction | query, options |
381
-
382
338
  ### [sms](./lib/sms.mjs)
383
339
 
384
340
  | symbol | type | params / value |
@@ -431,6 +387,8 @@ You may be provided with some tools(functions) to help you gather information an
431
387
  | DATAURL | String | DATAURL |
432
388
  | FILE | String | FILE |
433
389
  | MIME_BINARY | String | application/octet-stream |
390
+ | MIME_JSON | String | application/json |
391
+ | MIME_TEXT | String | text/plain |
434
392
  | STREAM | String | STREAM |
435
393
  | analyzeFile | AsyncFunction | any, options |
436
394
  | assertPath | AsyncFunction | path, type, mode, msg, code, options |
@@ -641,11 +599,23 @@ You may be provided with some tools(functions) to help you gather information an
641
599
  | symbol | type | params / value |
642
600
  | :--- | :--- | :--- |
643
601
  | _NEED | Array | jsdom,youtube-transcript,@mozilla/readability |
602
+ | default | AsyncFunction | url, options |
644
603
  | assertYoutubeUrl | Function | |
604
+ | checkSearch | Function | |
605
+ | checkVersion | AsyncFunction | pack |
645
606
  | distill | AsyncFunction | |
646
607
  | distillHtml | AsyncFunction | input, options |
647
608
  | distillPage | AsyncFunction | url, op |
648
609
  | distillYoutube | AsyncFunction | |
610
+ | get | AsyncFunction | url, options |
611
+ | getCurrentIp | AsyncFunction | options |
612
+ | getCurrentPosition | AsyncFunction | |
613
+ | getExchangeRate | AsyncFunction | to, from, amount |
614
+ | getJson | AsyncFunction | u, o |
615
+ | getParsedHtml | AsyncFunction | u, o |
616
+ | getVersionOnNpm | AsyncFunction | packName |
649
617
  | getYoutubeMetadata | AsyncFunction | |
650
618
  | getYoutubeTranscript | AsyncFunction | |
619
+ | initSearch | AsyncFunction | options |
651
620
  | isYoutubeUrl | Function | |
621
+ | search | AsyncFunction | query, options |