@stacksjs/ai 0.66.0 → 0.68.0
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/dist/client-bedrock-runtime.d.ts +6 -0
- package/dist/client-bedrock.d.ts +5 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +92 -95
- package/dist/model-access.d.ts +1 -0
- package/dist/text.d.ts +7 -7
- package/package.json +6 -8
- package/dist/image.d.ts +0 -0
- package/dist/index.js.map +0 -660
- package/dist/personalization.d.ts +0 -0
- package/dist/search.d.ts +0 -0
- package/dist/utils/client-bedrock-runtime.d.ts +0 -7
- package/dist/utils/client-bedrock.d.ts +0 -5
- package/dist/utils/model-access.d.ts +0 -1
- package/src/image.ts +0 -0
- package/src/index.ts +0 -8
- package/src/personalization.ts +0 -0
- package/src/search.ts +0 -0
- package/src/text.ts +0 -69
- package/src/utils/client-bedrock-runtime.ts +0 -54
- package/src/utils/client-bedrock.ts +0 -75
- package/src/utils/model-access.ts +0 -48
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function requestModelAccess(): Promise<void>;
|
package/dist/text.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface AiOptions {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare interface AiOptions {
|
|
2
|
+
maxTokenCount?: number
|
|
3
|
+
temperature?: number
|
|
4
|
+
topP?: number
|
|
5
5
|
}
|
|
6
|
-
export interface SummarizeOptions extends AiOptions {}
|
|
6
|
+
export declare interface SummarizeOptions extends AiOptions {}
|
|
7
7
|
export interface AskOptions extends AiOptions {}
|
|
8
|
-
export declare function summarize(text: string, options
|
|
9
|
-
export declare function ask(question: string, options
|
|
8
|
+
export declare function summarize(text: string, options: SummarizeOptions = {}): Promise<string>;
|
|
9
|
+
export declare function ask(question: string, options: AskOptions = {}): Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ai",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.68.0",
|
|
5
5
|
"description": "Stacks Artificial Intelligence.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -26,17 +26,15 @@
|
|
|
26
26
|
],
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"bun": "./src/index.ts",
|
|
30
29
|
"import": "./dist/index.js"
|
|
31
30
|
},
|
|
32
31
|
"./*": {
|
|
33
|
-
"bun": "./src/*",
|
|
34
32
|
"import": "./dist/*"
|
|
35
33
|
}
|
|
36
34
|
},
|
|
37
35
|
"module": "dist/index.js",
|
|
38
36
|
"types": "dist/index.d.ts",
|
|
39
|
-
"files": ["README.md", "dist"
|
|
37
|
+
"files": ["README.md", "dist"],
|
|
40
38
|
"scripts": {
|
|
41
39
|
"build": "bun build.ts",
|
|
42
40
|
"typecheck": "bun tsc --noEmit",
|
|
@@ -44,9 +42,9 @@
|
|
|
44
42
|
"prepublishOnly": "bun run build"
|
|
45
43
|
},
|
|
46
44
|
"devDependencies": {
|
|
47
|
-
"@aws-sdk/client-bedrock-runtime": "^3.
|
|
48
|
-
"@aws-sdk/credential-providers": "^3.
|
|
49
|
-
"@stacksjs/development": "0.
|
|
50
|
-
"aws-sdk-client-mock": "^4.0
|
|
45
|
+
"@aws-sdk/client-bedrock-runtime": "^3.679.0",
|
|
46
|
+
"@aws-sdk/credential-providers": "^3.679.0",
|
|
47
|
+
"@stacksjs/development": "0.67.0",
|
|
48
|
+
"aws-sdk-client-mock": "^4.1.0"
|
|
51
49
|
}
|
|
52
50
|
}
|
package/dist/image.d.ts
DELETED
|
File without changes
|