@memberjunction/ai-provider-bundle 4.0.0 → 4.1.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/README.md +21 -42
- package/package.json +23 -23
package/README.md
CHANGED
|
@@ -1,54 +1,33 @@
|
|
|
1
1
|
# @memberjunction/ai-provider-bundle
|
|
2
2
|
|
|
3
|
-
AI
|
|
3
|
+
Legacy AI provider bundle package for MemberJunction. This package previously contained tree-shaking prevention functions for all standard MemberJunction AI providers.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Status
|
|
6
6
|
|
|
7
|
-
This package
|
|
7
|
+
This package is effectively a no-op. Tree-shaking prevention is now handled by the MemberJunction manifest system (see `CLASS_MANIFEST_GUIDE.md` in the CodeGenLib package).
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
This bundle package maintains clean separation of concerns by keeping provider-specific loading logic separate from the core AI Engine infrastructure. Lower-level packages like `@memberjunction/ai`, `@memberjunction/aiengine`, and `@memberjunction/ai-engine-base` remain focused on core functionality without coupling to specific provider implementations.
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
9
|
+
The package is retained solely for backward compatibility with existing imports. No new functionality should be added here.
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { LoadAIProviders } from '@memberjunction/ai-provider-bundle';
|
|
11
|
+
## Architecture
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
```mermaid
|
|
14
|
+
graph TD
|
|
15
|
+
A["@memberjunction/ai-bundle<br/>(Legacy Package)"] -.->|previously loaded| B["All AI Providers"]
|
|
16
|
+
C["Manifest System<br/>(Current)"] -->|prevents tree-shaking| B
|
|
17
|
+
D["@memberjunction/server-bootstrap"] -->|pre-built manifest| C
|
|
18
|
+
E["@memberjunction/ng-bootstrap"] -->|pre-built manifest| C
|
|
19
|
+
|
|
20
|
+
style A fill:#b8762f,stroke:#8a5722,color:#fff
|
|
21
|
+
style B fill:#2d6a9f,stroke:#1a4971,color:#fff
|
|
22
|
+
style C fill:#2d8659,stroke:#1a5c3a,color:#fff
|
|
23
|
+
style D fill:#7c5295,stroke:#563a6b,color:#fff
|
|
24
|
+
style E fill:#7c5295,stroke:#563a6b,color:#fff
|
|
22
25
|
```
|
|
23
26
|
|
|
24
|
-
##
|
|
25
|
-
|
|
26
|
-
This bundle loads the following AI providers:
|
|
27
|
-
|
|
28
|
-
- **OpenAI** - GPT models and embeddings
|
|
29
|
-
- **Anthropic** - Claude models
|
|
30
|
-
- **Groq** - High-performance inference
|
|
31
|
-
- **Cerebras** - Fast inference models
|
|
32
|
-
- **Mistral** - Open-source LLMs
|
|
33
|
-
- **LMStudio** - Local model hosting
|
|
34
|
-
- **OpenRouter** - Multi-provider routing
|
|
35
|
-
- **Ollama** - Local model management
|
|
36
|
-
- **xAI** - Grok models
|
|
37
|
-
- **LocalEmbeddings** - Local embedding generation
|
|
38
|
-
|
|
39
|
-
## When to Use
|
|
40
|
-
|
|
41
|
-
Use this package in any MemberJunction application that:
|
|
42
|
-
|
|
43
|
-
1. Uses production builds with optimization/tree shaking enabled
|
|
44
|
-
2. Dynamically selects AI providers at runtime based on configuration
|
|
45
|
-
3. Needs all standard providers available without explicit imports
|
|
46
|
-
|
|
47
|
-
## When Not to Use
|
|
27
|
+
## Migration
|
|
48
28
|
|
|
49
|
-
If
|
|
29
|
+
If you are importing from this package, you can safely remove the import. The manifest system now handles class registration automatically via `@RegisterClass` decorators and the `CLASS_REGISTRATIONS` array generated by `mj codegen manifest`.
|
|
50
30
|
|
|
51
|
-
##
|
|
31
|
+
## Dependencies
|
|
52
32
|
|
|
53
|
-
|
|
54
|
-
- [@memberjunction/ai](../../Core/README.md) - Base AI types and interfaces
|
|
33
|
+
None (no-op package).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ai-provider-bundle",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.0",
|
|
5
5
|
"description": "MemberJunction AI Provider Bundle - Loads all standard AI providers to prevent tree shaking",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,28 +18,28 @@
|
|
|
18
18
|
"typescript": "^5.9.3"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@memberjunction/ai-anthropic": "4.
|
|
22
|
-
"@memberjunction/ai-azure": "4.
|
|
23
|
-
"@memberjunction/ai-bedrock": "4.
|
|
24
|
-
"@memberjunction/ai-betty-bot": "4.
|
|
25
|
-
"@memberjunction/ai-blackforestlabs": "4.
|
|
26
|
-
"@memberjunction/ai-cerebras": "4.
|
|
27
|
-
"@memberjunction/ai-cohere": "4.
|
|
28
|
-
"@memberjunction/ai-elevenlabs": "4.
|
|
29
|
-
"@memberjunction/ai-fireworks": "4.
|
|
30
|
-
"@memberjunction/ai-gemini": "4.
|
|
31
|
-
"@memberjunction/ai-groq": "4.
|
|
32
|
-
"@memberjunction/ai-heygen": "4.
|
|
33
|
-
"@memberjunction/ai-lmstudio": "4.
|
|
34
|
-
"@memberjunction/ai-local-embeddings": "4.
|
|
35
|
-
"@memberjunction/ai-mistral": "4.
|
|
36
|
-
"@memberjunction/ai-ollama": "4.
|
|
37
|
-
"@memberjunction/ai-openai": "4.
|
|
38
|
-
"@memberjunction/ai-openrouter": "4.
|
|
39
|
-
"@memberjunction/ai-recommendations-rex": "4.
|
|
40
|
-
"@memberjunction/ai-vectors-pinecone": "4.
|
|
41
|
-
"@memberjunction/ai-vertex": "4.
|
|
42
|
-
"@memberjunction/ai-xai": "4.
|
|
21
|
+
"@memberjunction/ai-anthropic": "4.1.0",
|
|
22
|
+
"@memberjunction/ai-azure": "4.1.0",
|
|
23
|
+
"@memberjunction/ai-bedrock": "4.1.0",
|
|
24
|
+
"@memberjunction/ai-betty-bot": "4.1.0",
|
|
25
|
+
"@memberjunction/ai-blackforestlabs": "4.1.0",
|
|
26
|
+
"@memberjunction/ai-cerebras": "4.1.0",
|
|
27
|
+
"@memberjunction/ai-cohere": "4.1.0",
|
|
28
|
+
"@memberjunction/ai-elevenlabs": "4.1.0",
|
|
29
|
+
"@memberjunction/ai-fireworks": "4.1.0",
|
|
30
|
+
"@memberjunction/ai-gemini": "4.1.0",
|
|
31
|
+
"@memberjunction/ai-groq": "4.1.0",
|
|
32
|
+
"@memberjunction/ai-heygen": "4.1.0",
|
|
33
|
+
"@memberjunction/ai-lmstudio": "4.1.0",
|
|
34
|
+
"@memberjunction/ai-local-embeddings": "4.1.0",
|
|
35
|
+
"@memberjunction/ai-mistral": "4.1.0",
|
|
36
|
+
"@memberjunction/ai-ollama": "4.1.0",
|
|
37
|
+
"@memberjunction/ai-openai": "4.1.0",
|
|
38
|
+
"@memberjunction/ai-openrouter": "4.1.0",
|
|
39
|
+
"@memberjunction/ai-recommendations-rex": "4.1.0",
|
|
40
|
+
"@memberjunction/ai-vectors-pinecone": "4.1.0",
|
|
41
|
+
"@memberjunction/ai-vertex": "4.1.0",
|
|
42
|
+
"@memberjunction/ai-xai": "4.1.0"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|