@stacksjs/types 0.70.162 → 0.70.163

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 (2) hide show
  1. package/dist/ai.d.ts +21 -1
  2. package/package.json +2 -2
package/dist/ai.d.ts CHANGED
@@ -6,9 +6,29 @@
6
6
  * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
7
  */
8
8
  export declare interface AiOptions {
9
- default: AiModel
9
+ default: 'anthropic' | 'openai' | 'ollama' | AiModel
10
10
  models: AiModel[]
11
11
  deploy: boolean
12
+ drivers?: {
13
+ anthropic?: {
14
+ apiKey?: string
15
+ model?: string
16
+ maxTokens?: number
17
+ anthropicVersion?: string
18
+ }
19
+ openai?: {
20
+ apiKey?: string
21
+ model?: string
22
+ maxTokens?: number
23
+ baseUrl?: string
24
+ embeddingModel?: string
25
+ }
26
+ ollama?: {
27
+ host?: string
28
+ model?: string
29
+ embeddingModel?: string
30
+ }
31
+ }
12
32
  }
13
33
  declare type AiModel = | 'amazon.titan-embed-text-v1'
14
34
  | 'amazon.titan-embed-text-v2:0'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.70.162",
4
+ "version": "0.70.163",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -66,7 +66,7 @@
66
66
  }
67
67
  },
68
68
  "devDependencies": {
69
- "@stacksjs/validation": "0.70.162",
69
+ "@stacksjs/validation": "0.70.163",
70
70
  "@types/bun": "^1.3.11",
71
71
  "meilisearch": "^0.59.0",
72
72
  "typescript": "^7.0.2"