@stll/ai-catalog 0.0.1-placeholder.0 → 0.1.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.
- package/README.md +34 -0
- package/dist/index.d.ts +1169 -0
- package/dist/index.js +1489 -0
- package/package.json +60 -3
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @stll/ai-catalog
|
|
2
|
+
|
|
3
|
+
Provider-neutral model roles, provider identifiers, curated model options, and
|
|
4
|
+
capability metadata for TypeScript applications.
|
|
5
|
+
|
|
6
|
+
The package keeps model selection structural: callers choose a logical role,
|
|
7
|
+
validate a provider/model pair against one catalogue, and can reject retired or
|
|
8
|
+
unsupported selections before a provider request.
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import {
|
|
12
|
+
DEFAULT_MODELS,
|
|
13
|
+
resolveWorkingBYOKModelForRole,
|
|
14
|
+
} from "@stll/ai-catalog";
|
|
15
|
+
|
|
16
|
+
const modelId = resolveWorkingBYOKModelForRole({
|
|
17
|
+
provider: "openai",
|
|
18
|
+
modelId: DEFAULT_MODELS.openai.fast,
|
|
19
|
+
role: "fast",
|
|
20
|
+
});
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The package contains data and validation only. It does not read environment
|
|
24
|
+
variables, store credentials, or initialize provider SDKs.
|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
bun add @stll/ai-catalog
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
Apache-2.0
|