@stacksjs/defaults 0.70.254 → 0.70.256

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.
@@ -58,6 +58,25 @@ const transcription = await openai.transcribe(audioFile)
58
58
  const speech = await openai.textToSpeech('Hello world')
59
59
  ```
60
60
 
61
+ ## Provider-Neutral Client
62
+
63
+ Use the config-driven client for application features that can run against
64
+ Anthropic, OpenAI, or Ollama. Configuration inspection is safe to return from a
65
+ status endpoint because it never includes credentials.
66
+
67
+ ```typescript
68
+ import { createAIClient, getAIProviderConfiguration } from '@stacksjs/ai'
69
+ import aiConfig from './config/ai'
70
+
71
+ const configuration = getAIProviderConfiguration(aiConfig)
72
+ // { provider: 'openai', model: 'gpt-4o-mini', configured: true, source: 'environment' }
73
+
74
+ if (configuration.configured) {
75
+ const client = createAIClient(aiConfig)
76
+ const result = await client.generate([{ role: 'user', content: 'Draft a launch plan.' }])
77
+ }
78
+ ```
79
+
61
80
  ## Ollama Driver (Local LLMs)
62
81
 
63
82
  ```typescript
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.70.254",
5
+ "version": "0.70.256",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.254",
5
+ "version": "0.70.256",
6
6
  "description": "The complete managed Stacks application scaffold, including runtime defaults, AI guidance, editor metadata, and npm-backed project support files.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",