Skip to content

Commit e3c3e8e

Browse files
authored
Hide from FE (#5078)
1 parent 3cfba13 commit e3c3e8e

File tree

6 files changed

+19
-2
lines changed

6 files changed

+19
-2
lines changed

bifrost/lib/clients/jawnTypes/public.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,6 +3281,7 @@ Json: JsonObject;
32813281
/** @enum {string} */
32823282
quantization?: "fp4" | "fp8" | "fp16" | "bf16";
32833283
responseFormat?: components["schemas"]["ResponseFormat"];
3284+
requireExplicitRouting?: boolean;
32843285
};
32853286
UserEndpointConfig: {
32863287
region?: string;

docs/swagger.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9075,6 +9075,9 @@
90759075
},
90769076
"responseFormat": {
90779077
"$ref": "#/components/schemas/ResponseFormat"
9078+
},
9079+
"requireExplicitRouting": {
9080+
"type": "boolean"
90789081
}
90799082
},
90809083
"required": [

valhalla/jawn/src/controllers/public/modelRegistryController.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ export class ModelRegistryController extends Controller {
9292
* - Input/output modalities (text, image, audio, video)
9393
* - Supported parameters (temperature, max_tokens, etc.)
9494
* - Available capabilities (audio, video, image, thinking, web_search, caching)
95-
*
95+
*
9696
* No authentication required - this is a public endpoint.
97-
*
97+
*
9898
* @returns {ModelRegistryResponse} Complete model registry with models and filter options
9999
*/
100100
@Get("/models")
@@ -231,6 +231,14 @@ export class ModelRegistryController extends Controller {
231231
continue;
232232
}
233233

234+
const allEndpointsRequireExplicitRouting = endpoints.every(
235+
(ep) => ep.endpoint?.modelConfig.requireExplicitRouting === true
236+
);
237+
238+
if (allEndpointsRequireExplicitRouting) {
239+
continue;
240+
}
241+
234242
const structuredModality = modelConfig.modality;
235243

236244
const allSupportedParameters = new Set<StandardParameter>();

valhalla/jawn/src/tsoa-build/public/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,6 +2898,7 @@ const models: TsoaRoute.Models = {
28982898
"priority": {"dataType":"double"},
28992899
"quantization": {"dataType":"union","subSchemas":[{"dataType":"enum","enums":["fp4"]},{"dataType":"enum","enums":["fp8"]},{"dataType":"enum","enums":["fp16"]},{"dataType":"enum","enums":["bf16"]}]},
29002900
"responseFormat": {"ref":"ResponseFormat"},
2901+
"requireExplicitRouting": {"dataType":"boolean"},
29012902
},
29022903
"additionalProperties": false,
29032904
},

valhalla/jawn/src/tsoa-build/public/swagger.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9075,6 +9075,9 @@
90759075
},
90769076
"responseFormat": {
90779077
"$ref": "#/components/schemas/ResponseFormat"
9078+
},
9079+
"requireExplicitRouting": {
9080+
"type": "boolean"
90789081
}
90799082
},
90809083
"required": [

web/lib/clients/jawnTypes/public.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,6 +3281,7 @@ Json: JsonObject;
32813281
/** @enum {string} */
32823282
quantization?: "fp4" | "fp8" | "fp16" | "bf16";
32833283
responseFormat?: components["schemas"]["ResponseFormat"];
3284+
requireExplicitRouting?: boolean;
32843285
};
32853286
UserEndpointConfig: {
32863287
region?: string;

0 commit comments

Comments
 (0)