utilitas 1995.2.15 → 1995.2.17
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 -2
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/dbio.mjs +19 -5
- package/lib/hal.mjs +28 -4
- package/lib/manifest.mjs +2 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -124,9 +124,11 @@ Works in Node.js and modern browsers.
|
|
|
124
124
|
| deleteByKeyValue | AsyncFunction | table, key, value, options |
|
|
125
125
|
| desc | AsyncFunction | table, options |
|
|
126
126
|
| drop | AsyncFunction | table, options |
|
|
127
|
-
| enableVector | AsyncFunction |
|
|
127
|
+
| enableVector | AsyncFunction | |
|
|
128
|
+
| encodeVector | AsyncFunction | |
|
|
128
129
|
| end | AsyncFunction | options |
|
|
129
130
|
| execute | AsyncFunction | ...args |
|
|
131
|
+
| getPgvector | AsyncFunction | |
|
|
130
132
|
| getProvider | AsyncFunction | |
|
|
131
133
|
| indexes | AsyncFunction | table, options |
|
|
132
134
|
| init | AsyncFunction | options |
|
|
@@ -194,13 +196,15 @@ Works in Node.js and modern browsers.
|
|
|
194
196
|
|
|
195
197
|
| symbol | type | params / value |
|
|
196
198
|
| :--- | :--- | :--- |
|
|
197
|
-
| _NEED | Array |
|
|
199
|
+
| _NEED | Array | openai,@waylaidwanderer/chatgpt-api |
|
|
198
200
|
| default | AsyncFunction | |
|
|
199
201
|
| MAX_CONTEXT_TOKENS | Number | 4096 |
|
|
200
202
|
| MAX_PROMPT_TOKENS | Number | 2457 |
|
|
201
203
|
| MAX_RESPONSE_TOKENS | Number | 1639 |
|
|
202
204
|
| countTokens | Function | txt |
|
|
205
|
+
| createEmbedding | AsyncFunction | input, options |
|
|
203
206
|
| init | AsyncFunction | |
|
|
207
|
+
| initOpenAI | AsyncFunction | options |
|
|
204
208
|
|
|
205
209
|
### [horizon](./lib/horizon.mjs)
|
|
206
210
|
|