@dbx-tools/dbx-model-catalog 0.1.5 → 0.1.6
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 +46 -9
- package/dist/_generated/json-schema.d.ts +3830 -0
- package/dist/_generated/published.d.ts +1 -1
- package/dist/_generated/schemas.d.ts +27 -2
- package/dist/browser.d.ts +11 -3
- package/dist/browser.js +9480 -1150
- package/dist/browser.js.map +32 -10
- package/dist/catalog-index.d.ts +28 -0
- package/dist/catalog.json +1 -0
- package/dist/cli.js +8847 -49461
- package/dist/cli.js.map +16 -223
- package/dist/filter.d.ts +2 -0
- package/dist/identity.d.ts +15 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +8843 -49453
- package/dist/index.js.map +15 -222
- package/dist/local-client.d.ts +4 -0
- package/dist/{client.d.ts → pynect.d.ts} +1 -1
- package/dist/pynect.js +553 -0
- package/dist/pynect.js.map +15 -0
- package/dist/search-index.json +1 -0
- package/dist/search.d.ts +10 -0
- package/dist/snapshot.d.ts +6 -0
- package/dist/snapshot.js +9494 -0
- package/dist/snapshot.js.map +36 -0
- package/dist/types.d.ts +5 -0
- package/dist/validation.d.ts +5 -0
- package/package.json +27 -2
- package/dist/python/pyproject.toml +0 -16
- package/dist/python/src/dbx_model_catalog/__init__.py +0 -93
- package/dist/python/src/dbx_model_catalog/client.py +0 -256
- package/dist/python/src/dbx_model_catalog/database.py +0 -296
- package/dist/python/src/dbx_model_catalog/filters.py +0 -41
- package/dist/python/src/dbx_model_catalog/models.py +0 -853
- package/dist/python/src/dbx_model_catalog/publishing.py +0 -118
- package/dist/python/src/dbx_model_catalog/py.typed +0 -0
- package/dist/python/src/dbx_model_catalog/query.py +0 -593
- package/dist/python/src/dbx_model_catalog/schema/__init__.py +0 -0
- package/dist/python/src/dbx_model_catalog/schema/model-catalog.schema.json +0 -1016
- package/dist/python/src/dbx_model_catalog/search.py +0 -912
- package/dist/python/src/dbx_model_catalog_server/__init__.py +0 -3
- package/dist/python/src/dbx_model_catalog_server/app.py +0 -142
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PUBLISHED_CATALOG_SCHEMA_VERSION:
|
|
1
|
+
export declare const PUBLISHED_CATALOG_SCHEMA_VERSION: 16;
|
|
2
2
|
export declare const PUBLISHED_CATALOG_ROOT_URL = "https://raw.githubusercontent.com/reggie-db/dbx-model-catalog/main/packages/js/web";
|
|
3
3
|
export declare const PUBLISHED_CATALOG_INDEX_URL = "https://raw.githubusercontent.com/reggie-db/dbx-model-catalog/main/packages/js/web/catalog/index.json";
|
|
4
4
|
export declare const PUBLISHED_CATALOG_SCHEMA_URL: string;
|
|
@@ -31,6 +31,8 @@ export interface Capabilities {
|
|
|
31
31
|
structured_output?: boolean | null;
|
|
32
32
|
temperature?: boolean | null;
|
|
33
33
|
interleaved_reasoning?: boolean | null;
|
|
34
|
+
responses: boolean;
|
|
35
|
+
apply_patch: boolean;
|
|
34
36
|
web_search: boolean;
|
|
35
37
|
reasoning?: Reasoning | Reasoning1 | null;
|
|
36
38
|
}
|
|
@@ -40,7 +42,7 @@ export interface CatalogFilters {
|
|
|
40
42
|
type?: Array<Type>;
|
|
41
43
|
publisher?: Array<string>;
|
|
42
44
|
task?: Array<string>;
|
|
43
|
-
capability?: Array<"attachments" | "reasoning" | "structured-output" | "tools" | "web-search">;
|
|
45
|
+
capability?: Array<"apply-patch" | "attachments" | "reasoning" | "responses" | "structured-output" | "tools" | "web-search">;
|
|
44
46
|
limit?: number | null;
|
|
45
47
|
}
|
|
46
48
|
/** Published statistics for one Databricks model. */
|
|
@@ -61,6 +63,8 @@ export interface CatalogModel {
|
|
|
61
63
|
modalities: Modalities;
|
|
62
64
|
capabilities: Capabilities;
|
|
63
65
|
limits?: Limits | null;
|
|
66
|
+
rate_limits?: RateLimits | null;
|
|
67
|
+
latency?: Latency | null;
|
|
64
68
|
tasks: Array<string>;
|
|
65
69
|
use_cases: Array<string>;
|
|
66
70
|
availability: Record<string, Availability>;
|
|
@@ -88,6 +92,8 @@ export interface CatalogModelRecord {
|
|
|
88
92
|
modalities: Modalities;
|
|
89
93
|
capabilities: Capabilities;
|
|
90
94
|
limits?: Limits | null;
|
|
95
|
+
rate_limits?: RateLimits | null;
|
|
96
|
+
latency?: Latency | null;
|
|
91
97
|
tasks: Array<string>;
|
|
92
98
|
use_cases: Array<string>;
|
|
93
99
|
availability: Record<string, Availability>;
|
|
@@ -157,6 +163,19 @@ export interface GetSearchIndexResponse {
|
|
|
157
163
|
export type Input = "text" | "image" | "audio" | "video" | "application/pdf" | "embedding" | "reranking" | "decision";
|
|
158
164
|
/** Known Databricks documentation notice kinds. */
|
|
159
165
|
export type Kind = "note" | "important" | "warning" | "tip" | "caution" | "info";
|
|
166
|
+
/** Normalized response-time score and public benchmark measurements. */
|
|
167
|
+
export interface Latency {
|
|
168
|
+
score: number;
|
|
169
|
+
measurements: LatencyMeasurements;
|
|
170
|
+
}
|
|
171
|
+
/** Public benchmark measurements underlying one latency score. */
|
|
172
|
+
export interface LatencyMeasurements {
|
|
173
|
+
time_to_first_token_ms: number;
|
|
174
|
+
output_tokens_per_second: number;
|
|
175
|
+
successful_run_count: number;
|
|
176
|
+
completion_token_count: number;
|
|
177
|
+
measured_at: string;
|
|
178
|
+
}
|
|
160
179
|
/** Documented token limits. */
|
|
161
180
|
export interface Limits {
|
|
162
181
|
context?: number | null;
|
|
@@ -178,7 +197,7 @@ export interface Modalities {
|
|
|
178
197
|
}
|
|
179
198
|
/** Published Databricks model catalog with identity, capabilities, availability, pricing, lifecycle, rankings, and benchmarks. */
|
|
180
199
|
export interface ModelCatalog {
|
|
181
|
-
schema_version:
|
|
200
|
+
schema_version: 16;
|
|
182
201
|
updated_at: string;
|
|
183
202
|
models: Record<string, CatalogModel>;
|
|
184
203
|
}
|
|
@@ -241,6 +260,12 @@ export interface Rankings1 {
|
|
|
241
260
|
observations: number;
|
|
242
261
|
sessions: number | null;
|
|
243
262
|
}
|
|
263
|
+
/** Published pay-per-token limits for one model. */
|
|
264
|
+
export interface RateLimits {
|
|
265
|
+
input_tokens_per_minute: number | null;
|
|
266
|
+
output_tokens_per_minute: number | null;
|
|
267
|
+
queries_per_hour: number | null;
|
|
268
|
+
}
|
|
244
269
|
/** Reasoning support and controls when known. */
|
|
245
270
|
export interface Reasoning {
|
|
246
271
|
supported: false;
|
package/dist/browser.d.ts
CHANGED
|
@@ -2,7 +2,15 @@ import type { CatalogClient } from "./types.js";
|
|
|
2
2
|
export type * from "./_generated/schemas.js";
|
|
3
3
|
export type * from "./types.js";
|
|
4
4
|
export { PUBLISHED_CATALOG_DATABASE_URL, PUBLISHED_CATALOG_INDEX_URL, PUBLISHED_CATALOG_ROOT_URL, PUBLISHED_CATALOG_SCHEMA_URL, PUBLISHED_CATALOG_SCHEMA_VERSION, PUBLISHED_CATALOG_SEARCH_INDEX_URL, PUBLISHED_CATALOG_URL, } from "./_generated/published.js";
|
|
5
|
-
export interface
|
|
6
|
-
|
|
5
|
+
export interface LoadModelCatalogOptions {
|
|
6
|
+
catalogUrl?: string;
|
|
7
|
+
fetch?: typeof globalThis.fetch;
|
|
8
|
+
searchIndexUrl?: string;
|
|
7
9
|
}
|
|
8
|
-
export declare function
|
|
10
|
+
export declare function loadModelCatalog(options?: LoadModelCatalogOptions): Promise<CatalogClient>;
|
|
11
|
+
export * from "./catalog-index.js";
|
|
12
|
+
export * from "./identity.js";
|
|
13
|
+
export * from "./validation.js";
|
|
14
|
+
export { createModelCatalogClient } from "./local-client.js";
|
|
15
|
+
export { filterCatalogRecords } from "./local-client.js";
|
|
16
|
+
export { searchCatalogMatches, searchCatalogRecords } from "./search.js";
|