@xsai/embed 0.4.0-beta.3 → 0.4.0-beta.5

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -5
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { CommonRequestOptions } from '@xsai/shared';
1
+ import { WithUnknown, CommonRequestOptions } from '@xsai/shared';
2
2
 
3
3
  interface EmbedOptions extends CommonRequestOptions {
4
- [key: string]: unknown;
5
4
  input: string;
6
5
  }
7
6
  interface EmbedResponse {
@@ -24,10 +23,9 @@ interface EmbedResult {
24
23
  input: string;
25
24
  usage: EmbedResponseUsage;
26
25
  }
27
- declare const embed: (options: EmbedOptions) => Promise<EmbedResult>;
26
+ declare const embed: (options: WithUnknown<EmbedOptions>) => Promise<EmbedResult>;
28
27
 
29
28
  interface EmbedManyOptions extends CommonRequestOptions {
30
- [key: string]: unknown;
31
29
  input: string[];
32
30
  }
33
31
  interface EmbedManyResult {
@@ -35,6 +33,6 @@ interface EmbedManyResult {
35
33
  input: string[];
36
34
  usage: EmbedResponseUsage;
37
35
  }
38
- declare const embedMany: (options: EmbedManyOptions) => Promise<EmbedManyResult>;
36
+ declare const embedMany: (options: WithUnknown<EmbedManyOptions>) => Promise<EmbedManyResult>;
39
37
 
40
38
  export { type EmbedManyOptions, type EmbedManyResult, type EmbedOptions, type EmbedResponse, type EmbedResponseUsage, type EmbedResult, embed, embedMany };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xsai/embed",
3
3
  "type": "module",
4
- "version": "0.4.0-beta.3",
4
+ "version": "0.4.0-beta.5",
5
5
  "description": "extra-small AI SDK.",
6
6
  "author": "Moeru AI",
7
7
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@xsai/shared": "~0.4.0-beta.3"
32
+ "@xsai/shared": "~0.4.0-beta.5"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "pkgroll",