@nyrra/foundry-ai 0.0.1 → 0.0.2-rc.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.
Files changed (2) hide show
  1. package/README.md +54 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # @nyrra/foundry-ai
2
+
3
+ Thin Foundry provider adapters and model catalog for the Vercel AI SDK.
4
+
5
+ ## Install
6
+
7
+ Install the package and the peer dependencies for the provider you plan to use:
8
+
9
+ ```bash
10
+ pnpm add @nyrra/foundry-ai ai @ai-sdk/openai
11
+ ```
12
+
13
+ ```bash
14
+ pnpm add @nyrra/foundry-ai ai @ai-sdk/anthropic
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```ts
20
+ import { loadFoundryConfig } from '@nyrra/foundry-ai';
21
+ import { createFoundryOpenAI } from '@nyrra/foundry-ai/openai';
22
+ import { generateText } from 'ai';
23
+
24
+ const openai = createFoundryOpenAI(
25
+ loadFoundryConfig({
26
+ foundryUrl: process.env.FOUNDRY_URL,
27
+ token: process.env.FOUNDRY_TOKEN,
28
+ attributionRid: process.env.FOUNDRY_ATTRIBUTION_RID,
29
+ }),
30
+ );
31
+
32
+ const result = await generateText({
33
+ model: openai('gpt-5-mini'),
34
+ prompt: 'Reply in one sentence.',
35
+ });
36
+
37
+ console.log(result.text);
38
+ ```
39
+
40
+ ## Exports
41
+
42
+ - `@nyrra/foundry-ai`
43
+ - `@nyrra/foundry-ai/openai`
44
+ - `@nyrra/foundry-ai/anthropic`
45
+
46
+ There is no published registry helper. Compose multi-provider routing in application code with AI SDK `createProviderRegistry`.
47
+
48
+ ## Notes
49
+
50
+ - OpenAI traffic always uses Foundry-safe compatibility defaults where required.
51
+ - `providerOptions.openai.store=true` throws before the request is sent.
52
+ - Unknown model strings pass through as raw Foundry RIDs when you call a provider factory directly.
53
+
54
+ See the repo root README for the full catalog, examples, and release notes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyrra/foundry-ai",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-rc.0",
4
4
  "description": "Thin Foundry provider adapters and model catalog for the Vercel AI SDK.",
5
5
  "repository": {
6
6
  "type": "git",