@llumiverse/drivers 0.23.0-dev-20251118 → 0.23.0-dev.20251121

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.
@@ -1,6 +1,6 @@
1
1
  import { ExecutionOptions } from "@llumiverse/core";
2
2
  import { NovaMessagesPrompt } from "@llumiverse/core/formatters";
3
- export declare function formatNovaImageGenerationPayload(taskType: string, prompt: NovaMessagesPrompt, options: ExecutionOptions): Promise<NovaTextToImagePayload> | Promise<NovaImageVariationPayload> | Promise<NovaColorGuidedGenerationPayload> | Promise<NovaBackgroundRemovalPayload> | Promise<NovaInpaintingPayload> | Promise<NovaOutpaintingPayload>;
3
+ export declare function formatNovaImageGenerationPayload(taskType: string, prompt: NovaMessagesPrompt, options: ExecutionOptions): Promise<NovaTextToImagePayload> | Promise<NovaColorGuidedGenerationPayload> | Promise<NovaImageVariationPayload> | Promise<NovaInpaintingPayload> | Promise<NovaOutpaintingPayload> | Promise<NovaBackgroundRemovalPayload>;
4
4
  export interface InvokeModelPayloadBase {
5
5
  taskType: NovaImageGenerationTaskType;
6
6
  imageGenerationConfig: {
@@ -15,18 +15,18 @@ export declare class HuggingFaceIEDriver extends AbstractDriver<HuggingFaceIEDri
15
15
  url: string;
16
16
  status: string;
17
17
  }>;
18
- getExecutor(model: string): Promise<any>;
18
+ getExecutor(model: string): Promise<InferenceClient>;
19
19
  requestTextCompletionStream(prompt: string, options: ExecutionOptions): Promise<AsyncIterable<CompletionChunkObject>>;
20
20
  requestTextCompletion(prompt: string, options: ExecutionOptions): Promise<{
21
21
  result: {
22
22
  type: "text";
23
- value: any;
23
+ value: string;
24
24
  }[];
25
25
  finish_reason: string;
26
26
  token_usage: {
27
- result: any;
27
+ result: number | undefined;
28
28
  };
29
- original_response: any;
29
+ original_response: import("@huggingface/inference").TextGenerationOutput | undefined;
30
30
  }>;
31
31
  listModels(): Promise<AIModel[]>;
32
32
  validateConnection(): Promise<boolean>;
package/package.json CHANGED
@@ -1,92 +1,87 @@
1
1
  {
2
- "name": "@llumiverse/drivers",
3
- "version": "0.23.0-dev-20251118",
4
- "type": "module",
5
- "description": "LLM driver implementations. Currently supported are: openai, huggingface, bedrock, replicate.",
6
- "files": [
7
- "lib",
8
- "src"
9
- ],
2
+ "name": "@llumiverse/drivers",
3
+ "version": "0.23.0-dev.20251121",
4
+ "type": "module",
5
+ "description": "LLM driver implementations. Currently supported are: openai, huggingface, bedrock, replicate.",
6
+ "files": [
7
+ "lib",
8
+ "src"
9
+ ],
10
+ "types": "./lib/types/index.d.ts",
11
+ "exports": {
10
12
  "types": "./lib/types/index.d.ts",
11
- "exports": {
12
- "types": "./lib/types/index.d.ts",
13
- "import": "./lib/esm/index.js",
14
- "require": "./lib/cjs/index.js"
15
- },
16
- "scripts": {
17
- "test": "vitest run --retry 3",
18
- "build": "pnpm exec tsmod build",
19
- "clean": "rimraf ./lib tsconfig.tsbuildinfo"
20
- },
21
- "author": "Llumiverse",
22
- "license": "Apache-2.0",
23
- "homepage": "https://github.com/vertesia/llumiverse",
24
- "repository": {
25
- "type": "git",
26
- "url": "git+ssh://git@github.com/vertesia/llumiverse.git"
27
- },
28
- "keywords": [
29
- "llm",
30
- "ai",
31
- "prompt",
32
- "prompt engineering",
33
- "ml",
34
- "machine learning",
35
- "embeddings",
36
- "training",
37
- "model",
38
- "universal",
39
- "api",
40
- "chatgpt",
41
- "openai",
42
- "vertexai",
43
- "bedrock",
44
- "replicate",
45
- "huggingface",
46
- "togetherai"
47
- ],
48
- "devDependencies": {
49
- "dotenv": "^16.6.1",
50
- "rimraf": "^6.1.0",
51
- "ts-dual-module": "^0.6.3",
52
- "typescript": "^5.9.3",
53
- "vitest": "^3.2.4"
54
- },
55
- "dependencies": {
56
- "@anthropic-ai/sdk": "^0.68.0",
57
- "@anthropic-ai/vertex-sdk": "^0.14.0",
58
- "@aws-sdk/client-bedrock": "^3.922.0",
59
- "@aws-sdk/client-bedrock-runtime": "^3.922.0",
60
- "@aws-sdk/client-s3": "^3.922.0",
61
- "@aws-sdk/credential-providers": "^3.922.0",
62
- "@aws-sdk/lib-storage": "^3.922.0",
63
- "@aws-sdk/types": "^3.922.0",
64
- "@azure-rest/ai-inference": "1.0.0-beta.6",
65
- "@azure/ai-projects": "1.0.0-beta.10",
66
- "@azure/core-auth": "^1.10.1",
67
- "@azure/core-sse": "^2.3.0",
68
- "@azure/identity": "^4.13.0",
69
- "@azure/openai": "2.0.0",
70
- "@google-cloud/aiplatform": "^5.12.0",
71
- "@google/genai": "^1.28.0",
72
- "@huggingface/inference": "4.13.0",
73
- "@llumiverse/common": "workspace:*",
74
- "@llumiverse/core": "workspace:*",
75
- "@vertesia/api-fetch-client": "^0.79.0",
76
- "eventsource": "^4.0.0",
77
- "google-auth-library": "^10.5.0",
78
- "groq-sdk": "^0.34.0",
79
- "mnemonist": "^0.40.3",
80
- "node-web-stream-adapters": "^0.2.1",
81
- "openai": "^4.104.0",
82
- "replicate": "^1.3.1"
83
- },
84
- "ts_dual_module": {
85
- "outDir": "lib"
86
- },
87
- "pnpm": {
88
- "overrides": {
89
- "google-auth-library": "^10.5.0"
90
- }
91
- }
92
- }
13
+ "import": "./lib/esm/index.js",
14
+ "require": "./lib/cjs/index.js"
15
+ },
16
+ "author": "Llumiverse",
17
+ "license": "Apache-2.0",
18
+ "homepage": "https://github.com/vertesia/llumiverse",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+ssh://git@github.com/vertesia/llumiverse.git"
22
+ },
23
+ "keywords": [
24
+ "llm",
25
+ "ai",
26
+ "prompt",
27
+ "prompt engineering",
28
+ "ml",
29
+ "machine learning",
30
+ "embeddings",
31
+ "training",
32
+ "model",
33
+ "universal",
34
+ "api",
35
+ "chatgpt",
36
+ "openai",
37
+ "vertexai",
38
+ "bedrock",
39
+ "replicate",
40
+ "huggingface",
41
+ "togetherai"
42
+ ],
43
+ "devDependencies": {
44
+ "dotenv": "^16.6.1",
45
+ "rimraf": "^6.1.2",
46
+ "ts-dual-module": "^0.6.3",
47
+ "typescript": "^5.9.3",
48
+ "vitest": "^3.2.4"
49
+ },
50
+ "dependencies": {
51
+ "@anthropic-ai/sdk": "^0.68.0",
52
+ "@anthropic-ai/vertex-sdk": "^0.14.0",
53
+ "@aws-sdk/client-bedrock": "^3.922.0",
54
+ "@aws-sdk/client-bedrock-runtime": "^3.922.0",
55
+ "@aws-sdk/client-s3": "^3.922.0",
56
+ "@aws-sdk/credential-providers": "^3.922.0",
57
+ "@aws-sdk/lib-storage": "^3.922.0",
58
+ "@aws-sdk/types": "^3.922.0",
59
+ "@azure-rest/ai-inference": "1.0.0-beta.6",
60
+ "@azure/ai-projects": "1.0.0-beta.10",
61
+ "@azure/core-auth": "^1.10.1",
62
+ "@azure/core-sse": "^2.3.0",
63
+ "@azure/identity": "^4.13.0",
64
+ "@azure/openai": "2.0.0",
65
+ "@google-cloud/aiplatform": "^5.12.0",
66
+ "@google/genai": "^1.28.0",
67
+ "@huggingface/inference": "4.13.0",
68
+ "@vertesia/api-fetch-client": "^0.79.1",
69
+ "eventsource": "^4.1.0",
70
+ "google-auth-library": "^10.5.0",
71
+ "groq-sdk": "^0.34.0",
72
+ "mnemonist": "^0.40.3",
73
+ "node-web-stream-adapters": "^0.2.1",
74
+ "openai": "^4.104.0",
75
+ "replicate": "^1.3.1",
76
+ "@llumiverse/core": "0.23.0-dev.20251121",
77
+ "@llumiverse/common": "0.23.0-dev.20251121"
78
+ },
79
+ "ts_dual_module": {
80
+ "outDir": "lib"
81
+ },
82
+ "scripts": {
83
+ "test": "vitest run --retry 3",
84
+ "build": "pnpm exec tsmod build",
85
+ "clean": "rimraf ./lib tsconfig.tsbuildinfo"
86
+ }
87
+ }