forked from kubeflow/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog.yaml
More file actions
1458 lines (1427 loc) · 50.5 KB
/
catalog.yaml
File metadata and controls
1458 lines (1427 loc) · 50.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Model Catalog REST API
version: v1alpha1
description: REST API for Model Registry to create and manage ML model metadata
license:
name: Apache 2.0
url: "https://www.apache.org/licenses/LICENSE-2.0"
servers:
- url: "https://localhost:8080"
- url: "http://localhost:8080"
paths:
/api/model_catalog/v1alpha1/labels:
summary: Path used to get the list of catalog labels.
description: >-
The REST endpoint/path used to list zero or more `CatalogLabel` entities.
get:
summary: List All CatalogLabels
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/labelOrderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogLabelListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findLabels
description: Gets a list of all `CatalogLabel` entities.
/api/model_catalog/v1alpha1/models:
description: >-
The REST endpoint/path used to list zero or more `CatalogModel` entities from all `CatalogSources`.
get:
summary: Search catalog models across sources.
tags:
- ModelCatalogService
parameters:
- name: source
description: |-
Filter models by source. Multiple values can be separated by commas
to filter by multiple sources (OR logic). For example:
?source=huggingface,local will return models from either
huggingface OR local sources.
schema:
type: array
items:
type: string
style: form
explode: true
in: query
required: false
- name: q
description: Free-form keyword search used to filter the response.
schema:
type: string
in: query
required: false
- name: sourceLabel
description: |-
Filter models by the label associated with the source. Multiple
values can be separated by commas. If one of the values is the
string `null`, then models from every source without a label will
be returned.
schema:
type: array
items:
type: string
in: query
required: false
- $ref: "#/components/parameters/filterQuery"
- $ref: "#/components/parameters/pageSize"
- name: orderBy
style: form
explode: true
examples:
orderBy:
value: ID
description: |-
Specifies the order by criteria for listing entities.
Supported values are:
- CREATE_TIME
- LAST_UPDATE_TIME
- ID
- NAME
- ACCURACY
The `ACCURACY` sort will sort by the `overall_average` property in any linked metrics artifact.
In addition, models can be sorted by properties. For example:
- `provider.string_value` sorts by provider name
- `artifacts.ifeval.double_value` sorts by the min/max value a property called ifeval across all associated artifacts
schema:
$ref: "#/components/schemas/OrderByField"
in: query
required: false
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogModelListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findModels
/api/model_catalog/v1alpha1/models/filter_options:
description: Lists options for `filterQuery` when listing models.
get:
summary: Lists fields and available options that can be used in `filterQuery` on the list models endpoint.
tags:
- ModelCatalogService
responses:
"200":
$ref: "#/components/responses/FilterOptionsResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findModelsFilterOptions
/api/model_catalog/v1alpha1/sources:
summary: Path used to get the list of catalog sources.
description: >-
The REST endpoint/path used to list zero or more `CatalogSource` entities.
get:
summary: List All CatalogSources
tags:
- ModelCatalogService
parameters:
- $ref: "#/components/parameters/name"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/orderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
responses:
"200":
$ref: "#/components/responses/CatalogSourceListResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: findSources
description: Gets a list of all `CatalogSource` entities.
/api/model_catalog/v1alpha1/sources/preview:
description: >-
The REST endpoint/path used to preview a catalog source configuration. This endpoint accepts a catalog source definition and returns a list of models with their inclusion/exclusion status based on the configured filters.
post:
summary: Preview catalog source configuration
description: |-
Accepts a catalog source configuration and returns a list of models showing
which would be included or excluded based on the configured filters. This allows
users to test and validate their source configurations before applying them.
**Two modes of operation:**
1. **Stateless mode (recommended for new sources):** Upload both `config` and
`catalogData` files via multipart form. The models are read directly from
the uploaded `catalogData`, enabling preview of new sources before saving
anything to the server. This is ideal for testing configurations.
2. **Path mode (for existing sources):** Upload only `config` with a `yamlCatalogPath`
property. The models are read from the specified file path on the server.
Use this for previewing changes to existing saved sources.
tags:
- ModelCatalogService
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- config
properties:
config:
type: string
format: binary
description: |-
YAML file containing the catalog source configuration.
The file should contain a source definition with type and properties
fields, including optional includedModels and excludedModels filters.
Model filter patterns support the `*` wildcard only and are case-insensitive.
Patterns match the entire model name (e.g., `ibm-granite/*` matches all
models starting with "ibm-granite/").
catalogData:
type: string
format: binary
description: |-
Optional YAML file containing the catalog data (models).
This field enables stateless preview of new sources before saving them.
When provided, the catalog data is read directly from this file instead of
from the `yamlCatalogPath` property in the config.
**Two modes of operation:**
1. **Stateless mode (recommended for new sources):** Upload both `config` and
`catalogData` files. The models are read from `catalogData`, allowing preview
without saving anything to the server.
2. **Path mode (for existing sources):** Upload only `config` with a `yamlCatalogPath`
property pointing to a catalog file on the server filesystem.
If both `catalogData` and `yamlCatalogPath` are provided, `catalogData` takes precedence.
examples:
statelessPreview:
summary: Stateless preview with uploaded catalog data
description: |-
Upload both config and catalogData files to preview a new source
before saving. This is the recommended approach for testing new configurations.
value: |
# config file content:
type: yaml
includedModels:
- "ibm-granite/*"
- "meta-llama/*"
excludedModels:
- "*-draft"
- "*-experimental"
# catalogData file content (separate file):
models:
- name: ibm-granite/granite-3.0-8b-instruct
description: Granite 8B Instruct model
- name: ibm-granite/granite-3.0-2b-draft
description: Draft version
- name: meta-llama/Llama-2-7b-hf
description: Llama 2 7B
pathBasedPreview:
summary: Path-based preview using server-side catalog
description: |-
Upload only config file with yamlCatalogPath pointing to an
existing catalog file on the server. Use this for previewing
changes to existing saved sources.
value: |
type: yaml
includedModels:
- "ibm-granite/*"
- "meta-llama/*"
- "mistralai/*"
excludedModels:
- "*-draft"
- "*-experimental"
properties:
yamlCatalogPath: "models-catalog.yaml"
huggingfaceSource:
summary: HuggingFace catalog source
description: |-
Upload configuration for HuggingFace source with API credentials.
The API key is passed per-request and not persisted anywhere.
value: |
type: hf
includedModels:
- "microsoft/*"
- "google/*"
excludedModels:
- "*-gguf"
properties:
apiKey: "your-huggingface-api-key-here" # notsecret
modelLimit: 100
parameters:
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/nextPageToken"
- name: filterStatus
description: |-
Filter the response to show specific model statuses:
- `all` (default): Show all models regardless of inclusion status
- `included`: Show only models that pass the configured filters
- `excluded`: Show only models that are filtered out
schema:
type: string
enum:
- all
- included
- excluded
default: all
in: query
required: false
responses:
"200":
$ref: "#/components/responses/CatalogSourcePreviewResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"422":
description: Unprocessable Entity - Invalid source configuration
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: previewCatalogSource
/api/model_catalog/v1alpha1/sources/{source_id}/models/{model_name+}:
description: >-
The REST endpoint/path used to get a `CatalogModel`.
get:
summary: Get a `CatalogModel`.
tags:
- ModelCatalogService
responses:
"200":
$ref: "#/components/responses/CatalogModelResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getModel
parameters:
- name: source_id
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: model_name+
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
/api/model_catalog/v1alpha1/sources/{source_id}/models/{model_name}/artifacts:
description: >-
The REST endpoint/path used to list `CatalogArtifacts`.
get:
summary: List CatalogArtifacts.
tags:
- ModelCatalogService
responses:
"200":
$ref: "#/components/responses/CatalogArtifactListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getAllModelArtifacts
parameters:
- name: source_id
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: model_name
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
- $ref: "#/components/parameters/artifactType"
- $ref: "#/components/parameters/artifact_type"
- $ref: "#/components/parameters/artifactFilterQuery"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/artifactOrderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
/api/model_catalog/v1alpha1/sources/{source_id}/models/{model_name}/artifacts/performance:
description: >-
Lists performance metrics artifacts (that is, artifacts of type `CatalogMetricsArtifact` where `metricsType` is `performance-metrics`).
get:
summary: List CatalogArtifacts.
tags:
- ModelCatalogService
responses:
"200":
$ref: "#/components/responses/CatalogArtifactListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"500":
$ref: "#/components/responses/InternalServerError"
operationId: getAllModelPerformanceArtifacts
parameters:
- name: source_id
description: A unique identifier for a `CatalogSource`.
schema:
type: string
in: path
required: true
- name: model_name
description: A unique identifier for the model.
schema:
type: string
in: path
required: true
- name: targetRPS
description: |-
Target requests per second. If specified, values for `replicas` and
`total_requests_per_second` will be calculated and returned as custom
properties.
schema:
type: integer
in: query
- name: recommendations
description: Filter records that are less optimal based on approximate cost to run and latency.
schema:
type: boolean
default: false
in: query
- name: rpsProperty
description: Custom property name for requests per second metric.
schema:
type: string
default: "requests_per_second"
in: query
- name: latencyProperty
description: Custom property name for latency metric (e.g., ttft_p90, p90_latency).
schema:
type: string
default: "ttft_p90"
in: query
- name: hardwareCountProperty
description: Custom property name for hardware count metric.
schema:
type: string
default: "hardware_count"
in: query
- name: hardwareTypeProperty
description: Custom property name for hardware type grouping.
schema:
type: string
default: "hardware_type"
in: query
- $ref: "#/components/parameters/artifactFilterQuery"
- $ref: "#/components/parameters/pageSize"
- $ref: "#/components/parameters/artifactOrderBy"
- $ref: "#/components/parameters/sortOrder"
- $ref: "#/components/parameters/nextPageToken"
components:
schemas:
ArtifactTypeQueryParam:
description: Supported artifact types for querying.
enum:
- model-artifact
- metrics-artifact
type: string
BaseModel:
type: object
properties:
description:
type: string
description: Human-readable description of the model.
readme:
type: string
description: Model documentation in Markdown.
maturity:
type: string
description: Maturity level of the model.
example: Generally Available
language:
type: array
description: List of supported languages (https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes).
items:
type: string
example:
- en
- es
- cz
tasks:
type: array
description: List of tasks the model is designed for.
items:
type: string
example:
- text-generation
provider:
type: string
description: Name of the organization or entity that provides the model.
example: IBM
logo:
type: string
format: uri
description: |-
URL to the model's logo. A [data
URL](https://developer.mozilla.org/en-US/docs/Web/URI/Schemes/data)
is recommended.
license:
type: string
description: Short name of the model's license.
example: apache-2.0
licenseLink:
type: string
format: uri
description: URL to the license text.
libraryName:
type: string
example: transformers
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
BaseResource:
allOf:
- type: object
properties:
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
description:
description: |-
An optional description about the resource.
type: string
externalId:
description: |-
The external id that come from the clients’ system. This field is optional.
If set, it must be unique among all resources within a database instance.
type: string
name:
description: |-
The client provided name of the artifact. This field is optional. If set,
it must be unique among all the artifacts of the same artifact type within
a database instance and cannot be changed once set.
type: string
id:
format: int64
description: The unique server generated id of the resource.
type: string
- $ref: "#/components/schemas/BaseResourceDates"
BaseResourceDates:
description: Common timestamp fields for resources
type: object
properties:
createTimeSinceEpoch:
format: int64
description: Output only. Create time of the resource in millisecond since epoch.
type: string
readOnly: true
lastUpdateTimeSinceEpoch:
format: int64
description: Output only. Last update time of the resource since epoch in millisecond since epoch.
type: string
readOnly: true
BaseResourceList:
required:
- nextPageToken
- pageSize
- size
type: object
properties:
nextPageToken:
description: Token to use to retrieve next page of results.
type: string
pageSize:
format: int32
description: Maximum number of resources to return in the result.
type: integer
size:
format: int32
description: Number of items in result list.
type: integer
CatalogArtifact:
description: A single artifact in the catalog API.
oneOf:
- $ref: "#/components/schemas/CatalogModelArtifact"
- $ref: "#/components/schemas/CatalogMetricsArtifact"
discriminator:
propertyName: artifactType
mapping:
model-artifact: "#/components/schemas/CatalogModelArtifact"
metrics-artifact: "#/components/schemas/CatalogMetricsArtifact"
CatalogArtifactList:
description: List of CatalogModel entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogArtifact` entities.
type: array
items:
$ref: "#/components/schemas/CatalogArtifact"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
CatalogLabel:
description: A catalog label. Labels are used to categorize catalog sources. Represented as a flexible map of string key-value pairs with a required 'name' field.
type: object
required:
- name
properties:
name:
type: string
nullable: true
description: The unique name identifier for the label.
displayName:
type: string
description: An optional human-readable name to show in place of `name`.
additionalProperties:
type: string
example:
name: huggingface
displayName: HuggingFace Hub
description: HuggingFace models with full support and legal indemnification.
CatalogLabelList:
description: List of CatalogLabel entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogLabel` entities.
type: array
items:
$ref: "#/components/schemas/CatalogLabel"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
CatalogMetricsArtifact:
description: A metadata Artifact Entity.
allOf:
- type: object
required:
- artifactType
- metricsType
properties:
artifactType:
type: string
default: metrics-artifact
metricsType:
type: string
enum:
- performance-metrics
- accuracy-metrics
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
- $ref: "#/components/schemas/BaseResource"
CatalogModel:
description: A model in the model catalog.
allOf:
- type: object
required:
- name
properties:
name:
type: string
description: Name of the model. Must be unique within a source.
example: ibm-granite/granite-3.1-8b-base
source_id:
type: string
description: ID of the source this model belongs to.
- $ref: "#/components/schemas/BaseModel"
- $ref: "#/components/schemas/BaseResource"
CatalogModelArtifact:
description: A Catalog Model Artifact Entity.
allOf:
- type: object
required:
- artifactType
- uri
properties:
artifactType:
type: string
default: model-artifact
uri:
type: string
format: uri
description: URI where the model can be retrieved.
customProperties:
description: User provided custom properties which are not defined by its type.
type: object
additionalProperties:
$ref: "#/components/schemas/MetadataValue"
- $ref: "#/components/schemas/BaseResource"
CatalogModelList:
description: List of CatalogModel entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogModel` entities.
type: array
items:
$ref: "#/components/schemas/CatalogModel"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
CatalogSource:
description: A catalog source. A catalog source has CatalogModel children.
required:
- id
- name
- labels
type: object
properties:
id:
description: A unique identifier for a `CatalogSource`.
type: string
name:
description: The name of the catalog source.
type: string
enabled:
description: Whether the catalog source is enabled.
type: boolean
default: true
labels:
description: Labels for the catalog source.
type: array
items:
type: string
includedModels:
description: |-
Optional list of glob patterns for models to include. If specified, only models matching
at least one pattern will be included. If omitted, all models are considered for inclusion.
Pattern Syntax:
- Only the `*` wildcard is supported (matches zero or more characters)
- Patterns are case-insensitive (e.g., `Granite/*` matches `granite/model` and `GRANITE/model`)
- Patterns match the entire model name (anchored at start and end)
- Wildcards can appear anywhere: `Granite/*`, `*-beta`, `*deprecated*`, `*/old*`
Examples:
- `ibm-granite/*` - matches all models starting with "ibm-granite/"
- `meta-llama/*` - matches all models in the meta-llama namespace
- `*` - matches all models
Constraints:
- Patterns cannot be empty or whitespace-only
- A pattern cannot appear in both includedModels and excludedModels
type: array
items:
type: string
excludedModels:
description: |-
Optional list of glob patterns for models to exclude. Models matching any pattern
will be excluded even if they match an includedModels pattern. Exclusions take
precedence over inclusions.
Pattern Syntax:
- Only the `*` wildcard is supported (matches zero or more characters)
- Patterns are case-insensitive
- Patterns match the entire model name (anchored at start and end)
- Wildcards can appear anywhere in the pattern
Examples:
- `*-draft` - excludes all models ending with "-draft"
- `*-experimental` - excludes experimental models
- `*deprecated*` - excludes models with "deprecated" anywhere in the name
- `*/beta-*` - excludes models with "/beta-" in the path
Constraints:
- Patterns cannot be empty or whitespace-only
- A pattern cannot appear in both includedModels and excludedModels
type: array
items:
type: string
CatalogSourceList:
description: List of CatalogSource entities.
allOf:
- type: object
properties:
items:
description: Array of `CatalogSource` entities.
type: array
items:
$ref: "#/components/schemas/CatalogSource"
- $ref: "#/components/schemas/BaseResourceList"
CatalogSourcePreviewResponse:
description: Response containing models and their inclusion/exclusion status.
allOf:
- type: object
properties:
items:
description: Array of model preview results.
type: array
items:
$ref: "#/components/schemas/ModelPreviewResult"
summary:
description: Summary of the preview results
type: object
properties:
totalModels:
type: integer
description: Total number of models evaluated
example: 1500
includedModels:
type: integer
description: Number of models that would be included
example: 850
excludedModels:
type: integer
description: Number of models that would be excluded
example: 650
required:
- totalModels
- includedModels
- excludedModels
required:
- items
- summary
- $ref: "#/components/schemas/BaseResourceList"
Error:
description: Error code and message.
required:
- code
- message
type: object
properties:
code:
description: Error code
type: string
message:
description: Error message
type: string
FilterOption:
type: object
required:
- type
properties:
type:
type: string
description: The data type of the filter option
enum:
- string
- number
values:
type: array
description: Known values of the property for string types with a small number of possible options.
items: {}
range:
$ref: "#/components/schemas/FilterOptionRange"
FilterOptionRange:
type: object
description: Min and max values for number types.
properties:
min:
type: number
format: double
max:
type: number
format: double
FilterOptionsList:
description: List of FilterOptions
type: object
properties:
filters:
type: object
description: A single filter option.
additionalProperties:
$ref: "#/components/schemas/FilterOption"
MetadataBoolValue:
description: A bool property value.
type: object
required:
- metadataType
- bool_value
properties:
bool_value:
type: boolean
metadataType:
type: string
example: MetadataBoolValue
default: MetadataBoolValue
MetadataDoubleValue:
description: A double property value.
type: object
required:
- metadataType
- double_value
properties:
double_value:
format: double
type: number
metadataType:
type: string
example: MetadataDoubleValue
default: MetadataDoubleValue
MetadataIntValue:
description: An integer (int64) property value.
type: object
required:
- metadataType
- int_value
properties:
int_value:
format: int64
type: string
metadataType:
type: string
example: MetadataIntValue
default: MetadataIntValue
MetadataProtoValue:
description: A proto property value.
type: object
required:
- metadataType
- type
- proto_value
properties:
type:
description: url describing proto value
type: string
proto_value:
description: Base64 encoded bytes for proto value
type: string
metadataType:
type: string
example: MetadataProtoValue
default: MetadataProtoValue
MetadataStringValue:
description: A string property value.
type: object
required:
- metadataType
- string_value
properties:
string_value:
type: string
metadataType:
type: string
example: MetadataStringValue
default: MetadataStringValue
MetadataStructValue:
description: A struct property value.
type: object
required:
- metadataType
- struct_value
properties:
struct_value:
description: Base64 encoded bytes for struct value
type: string
metadataType:
type: string
example: MetadataStructValue
default: MetadataStructValue
MetadataValue:
oneOf:
- $ref: "#/components/schemas/MetadataIntValue"
- $ref: "#/components/schemas/MetadataDoubleValue"
- $ref: "#/components/schemas/MetadataStringValue"
- $ref: "#/components/schemas/MetadataStructValue"
- $ref: "#/components/schemas/MetadataProtoValue"
- $ref: "#/components/schemas/MetadataBoolValue"
discriminator:
propertyName: metadataType
mapping:
MetadataBoolValue: "#/components/schemas/MetadataBoolValue"
MetadataDoubleValue: "#/components/schemas/MetadataDoubleValue"
MetadataIntValue: "#/components/schemas/MetadataIntValue"
MetadataProtoValue: "#/components/schemas/MetadataProtoValue"
MetadataStringValue: "#/components/schemas/MetadataStringValue"
MetadataStructValue: "#/components/schemas/MetadataStructValue"
description: A value in properties.
example:
string_value: my_value
metadataType: MetadataStringValue
ModelPreviewResult:
description: |-
A model with its inclusion/exclusion status based on the
configured catalog source filters.
type: object
required:
- name
- included
properties:
name:
type: string
description: Name of the model
example: microsoft/DialoGPT-medium
included:
type: boolean
description: Whether this model would be included based on the source configuration
OrderByField:
description: |-
Supported fields for ordering result entities.
enum:
- CREATE_TIME
- LAST_UPDATE_TIME
- ID
- NAME
type: string
SortOrder: