@mzhub/cortex 0.1.1 → 0.1.2

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 (37) hide show
  1. package/README.md +0 -0
  2. package/dist/{BaseAdapter-WunbfD_n.d.ts → BaseAdapter-BcNZrPzG.d.ts} +1 -1
  3. package/dist/{BaseAdapter-Bjj4JG_S.d.mts → BaseAdapter-CH2Gg9xO.d.mts} +1 -1
  4. package/dist/BaseProvider-8dmLKPhr.d.mts +61 -0
  5. package/dist/BaseProvider-DgYEmkh_.d.ts +61 -0
  6. package/dist/adapters/index.d.mts +2 -2
  7. package/dist/adapters/index.d.ts +2 -2
  8. package/dist/adapters/index.js +8 -0
  9. package/dist/adapters/index.js.map +1 -1
  10. package/dist/adapters/index.mjs +8 -0
  11. package/dist/adapters/index.mjs.map +1 -1
  12. package/dist/{index-fTN1gEXd.d.mts → index-BHvGS1BY.d.mts} +8 -4
  13. package/dist/{index-DYNiiClR.d.ts → index-CA79C0tz.d.ts} +8 -4
  14. package/dist/index.d.mts +8 -5
  15. package/dist/index.d.ts +8 -5
  16. package/dist/index.js +275 -133
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +275 -133
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/middleware/index.d.mts +4 -4
  21. package/dist/middleware/index.d.ts +4 -4
  22. package/dist/middleware/index.js +0 -0
  23. package/dist/middleware/index.js.map +0 -0
  24. package/dist/middleware/index.mjs +0 -0
  25. package/dist/middleware/index.mjs.map +0 -0
  26. package/dist/providers/index.d.mts +2 -2
  27. package/dist/providers/index.d.ts +2 -2
  28. package/dist/providers/index.js +72 -17
  29. package/dist/providers/index.js.map +1 -1
  30. package/dist/providers/index.mjs +72 -17
  31. package/dist/providers/index.mjs.map +1 -1
  32. package/dist/{types-DybcUhEZ.d.mts → types-DUn4u5hk.d.mts} +1 -1
  33. package/dist/{types-DybcUhEZ.d.ts → types-DUn4u5hk.d.ts} +1 -1
  34. package/logo.png +0 -0
  35. package/package.json +20 -19
  36. package/dist/BaseProvider-B8x1pJXP.d.mts +0 -34
  37. package/dist/BaseProvider-BIkJVjtg.d.ts +0 -34
@@ -1,34 +0,0 @@
1
- import { a as CompletionOptions, b as CompletionResult } from './types-DybcUhEZ.mjs';
2
-
3
- /**
4
- * Abstract base class for LLM providers.
5
- * All provider implementations must extend this class.
6
- */
7
- declare abstract class BaseProvider {
8
- protected apiKey: string;
9
- protected model: string;
10
- protected baseUrl?: string;
11
- constructor(config: {
12
- apiKey: string;
13
- model?: string;
14
- baseUrl?: string;
15
- });
16
- /**
17
- * Get the default model for this provider
18
- */
19
- abstract getDefaultModel(): string;
20
- /**
21
- * Get the provider name
22
- */
23
- abstract getName(): string;
24
- /**
25
- * Generate a completion from the LLM
26
- */
27
- abstract complete(options: CompletionOptions): Promise<CompletionResult>;
28
- /**
29
- * Check if the provider SDK is available
30
- */
31
- static isAvailable(): boolean;
32
- }
33
-
34
- export { BaseProvider as B };
@@ -1,34 +0,0 @@
1
- import { a as CompletionOptions, b as CompletionResult } from './types-DybcUhEZ.js';
2
-
3
- /**
4
- * Abstract base class for LLM providers.
5
- * All provider implementations must extend this class.
6
- */
7
- declare abstract class BaseProvider {
8
- protected apiKey: string;
9
- protected model: string;
10
- protected baseUrl?: string;
11
- constructor(config: {
12
- apiKey: string;
13
- model?: string;
14
- baseUrl?: string;
15
- });
16
- /**
17
- * Get the default model for this provider
18
- */
19
- abstract getDefaultModel(): string;
20
- /**
21
- * Get the provider name
22
- */
23
- abstract getName(): string;
24
- /**
25
- * Generate a completion from the LLM
26
- */
27
- abstract complete(options: CompletionOptions): Promise<CompletionResult>;
28
- /**
29
- * Check if the provider SDK is available
30
- */
31
- static isAvailable(): boolean;
32
- }
33
-
34
- export { BaseProvider as B };