@memberjunction/server 2.84.0 → 2.86.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/src/index.ts CHANGED
@@ -49,6 +49,10 @@ import { LoadAnthropicLLM } from '@memberjunction/ai-anthropic';
49
49
  import { LoadGroqLLM } from '@memberjunction/ai-groq';
50
50
  import { LoadCerebrasLLM } from '@memberjunction/ai-cerebras';
51
51
  import { LoadMistralLLM } from '@memberjunction/ai-mistral';
52
+ import { LoadLMStudioLLM } from '@memberjunction/ai-lmstudio';
53
+ import { LoadOpenRouterLLM } from '@memberjunction/ai-openrouter';
54
+ import { LoadOllamaLLM } from '@memberjunction/ai-ollama';
55
+ import { LoadLocalEmbedding } from '@memberjunction/ai-local-embeddings';
52
56
  // Load AI LLMs and Base AI Engine
53
57
  // These imports are necessary to ensure the LLMs are registered in the MemberJunction AI
54
58
  // system. They are not tree-shaken because they are dynamically loaded at runtime.
@@ -58,6 +62,10 @@ LoadAnthropicLLM();
58
62
  LoadGroqLLM();
59
63
  LoadCerebrasLLM();
60
64
  LoadMistralLLM();
65
+ LoadLMStudioLLM();
66
+ LoadOpenRouterLLM();
67
+ LoadOllamaLLM();
68
+ LoadLocalEmbedding();
61
69
 
62
70
  import { ExternalChangeDetectorEngine } from '@memberjunction/external-change-detection';
63
71
 
@@ -18,6 +18,7 @@ import {
18
18
  SkipAPIClarifyingQuestionResponse,
19
19
  SkipEntityInfo,
20
20
  SkipQueryInfo,
21
+ SkipQueryEntityInfo,
21
22
  SkipAPIRunScriptRequest,
22
23
  SkipAPIRequestAPIKey,
23
24
  SkipRequestPhase,
@@ -1471,6 +1472,18 @@ cycle.`);
1471
1472
  createdAt: p.__mj_CreatedAt,
1472
1473
  updatedAt: p.__mj_UpdatedAt,
1473
1474
  };
1475
+ }),
1476
+ entities: q.Entities.map((e) => {
1477
+ return {
1478
+ id: `${e.QueryID}_${e.EntityID}`, // Composite key since QueryEntityInfo doesn't have a single ID field
1479
+ queryID: e.QueryID,
1480
+ entityID: e.EntityID,
1481
+ entityName: e.Entity,
1482
+ detectionMethod: e.DetectionMethod,
1483
+ autoDetectConfidenceScore: e.AutoDetectConfidenceScore,
1484
+ createdAt: e.__mj_CreatedAt,
1485
+ updatedAt: e.__mj_UpdatedAt,
1486
+ };
1474
1487
  })
1475
1488
  }
1476
1489
  });
@@ -216,9 +216,6 @@ export class QueryEntityType {
216
216
 
217
217
  @Field(() => String, { nullable: true })
218
218
  EntityName?: string;
219
-
220
- @Field(() => Number)
221
- Sequence!: number;
222
219
  }
223
220
 
224
221
  @ObjectType()
@@ -518,8 +515,7 @@ export class QueryResolverExtended extends QueryResolver {
518
515
  ID: e.ID,
519
516
  QueryID: e.QueryID,
520
517
  EntityID: e.EntityID,
521
- EntityName: e.Entity || undefined, // Property is called Entity, not EntityName
522
- Sequence: e.Sequence || 0
518
+ EntityName: e.Entity || undefined // Property is called Entity, not EntityName
523
519
  }));
524
520
 
525
521
  const permissions: QueryPermissionType[] = queryEntity.QueryPermissions.map(p => ({