create-mantiq 0.5.22 → 0.5.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mantiq",
3
- "version": "0.5.22",
3
+ "version": "0.5.23",
4
4
  "description": "Scaffold a new MantiqJS application",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -55,3 +55,10 @@ FILESYSTEM_DISK=local
55
55
  # ALGOLIA_SECRET=
56
56
  # MEILISEARCH_HOST=http://127.0.0.1:7700
57
57
  # MEILISEARCH_KEY=
58
+
59
+ # AI
60
+ AI_PROVIDER=openai
61
+ AI_MODEL=gpt-4o
62
+ OPENAI_API_KEY=
63
+ ANTHROPIC_API_KEY=
64
+ GEMINI_API_KEY=
@@ -0,0 +1,51 @@
1
+ import { env } from '@mantiq/core'
2
+
3
+ export default {
4
+ default: env('AI_PROVIDER', 'openai'),
5
+
6
+ providers: {
7
+ openai: {
8
+ driver: 'openai' as const,
9
+ apiKey: env('OPENAI_API_KEY', ''),
10
+ },
11
+ anthropic: {
12
+ driver: 'anthropic' as const,
13
+ apiKey: env('ANTHROPIC_API_KEY', ''),
14
+ },
15
+ gemini: {
16
+ driver: 'gemini' as const,
17
+ apiKey: env('GEMINI_API_KEY', ''),
18
+ },
19
+ ollama: {
20
+ driver: 'ollama' as const,
21
+ host: env('OLLAMA_HOST', 'http://localhost'),
22
+ port: 11434,
23
+ },
24
+ },
25
+
26
+ defaultModel: env('AI_MODEL', 'gpt-4o'),
27
+
28
+ embeddings: {
29
+ default: 'openai',
30
+ providers: {},
31
+ defaultModel: 'text-embedding-3-small',
32
+ },
33
+
34
+ vectorStores: {
35
+ default: 'memory',
36
+ stores: {
37
+ memory: { driver: 'memory' as const },
38
+ },
39
+ },
40
+
41
+ observability: {
42
+ enabled: true,
43
+ logRequests: env('AI_LOG_REQUESTS', 'false') === 'true',
44
+ trackCosts: true,
45
+ },
46
+
47
+ limits: {
48
+ maxTokensPerRequest: 4096,
49
+ maxCostPerDay: 100.00,
50
+ },
51
+ }
@@ -9,24 +9,25 @@
9
9
  "mantiq": "bun run mantiq.ts"
10
10
  },
11
11
  "dependencies": {
12
- "@mantiq/0,
13
- "@mantiq/0,
14
- "@mantiq/0,
15
- "@mantiq/0,
16
- "@mantiq/0,
17
- "@mantiq/0,
18
- "@mantiq/0,
19
- "@mantiq/0,
20
- "@mantiq/0,
21
- "@mantiq/0,
22
- "@mantiq/0,
23
- "@mantiq/0,
24
- "@mantiq/0,
25
- "@mantiq/0,
26
- "@mantiq/0,
27
- "@mantiq/0
12
+ "@mantiq/auth": "^0.5.0",
13
+ "@mantiq/cli": "^0.5.0",
14
+ "@mantiq/core": "^0.5.0",
15
+ "@mantiq/database": "^0.5.0",
16
+ "@mantiq/events": "^0.5.0",
17
+ "@mantiq/filesystem": "^0.5.0",
18
+ "@mantiq/heartbeat": "^0.5.0",
19
+ "@mantiq/helpers": "^0.5.0",
20
+ "@mantiq/logging": "^0.5.0",
21
+ "@mantiq/queue": "^0.5.0",
22
+ "@mantiq/realtime": "^0.5.0",
23
+ "@mantiq/validation": "^0.5.0",
24
+ "@mantiq/mail": "^0.5.0",
25
+ "@mantiq/notify": "^0.5.0",
26
+ "@mantiq/search": "^0.5.0",
27
+ "@mantiq/health": "^0.5.0"
28
28
  },
29
29
  "devDependencies": {
30
+ "@mantiq/testing": "^0.5.0",
30
31
  "bun-types": "latest",
31
32
  "typescript": "^5.7.0"
32
33
  }