diff --git a/output/schema/schema.json b/output/schema/schema.json index 0e3b91b19e..767e6aea49 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -127828,21 +127828,30 @@ }, { "body": { - "kind": "value", - "value": { - "kind": "instance_of", - "type": { - "name": "ModelConfigContainer", - "namespace": "inference._types" + "kind": "properties", + "properties": [ + { + "name": "models", + "required": true, + "type": { + "kind": "array_of", + "value": { + "kind": "instance_of", + "type": { + "name": "ModelConfigContainer", + "namespace": "inference._types" + } + } + } } - } + ] }, "kind": "response", "name": { "name": "Response", "namespace": "inference.get_model" }, - "specLocation": "inference/get_model/GetModelResponse.ts#L22-L24" + "specLocation": "inference/get_model/GetModelResponse.ts#L22-L26" }, { "attachedBehaviors": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 9a810facb5..2cdd027a1c 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11482,7 +11482,9 @@ export interface InferenceGetModelRequest extends RequestBase { model_id: Id } -export type InferenceGetModelResponse = InferenceModelConfigContainer +export interface InferenceGetModelResponse { + models: InferenceModelConfigContainer[] +} export interface InferenceInferenceRequest extends RequestBase { task_type: InferenceTaskType diff --git a/specification/inference/get_model/GetModelResponse.ts b/specification/inference/get_model/GetModelResponse.ts index ee8a538716..3979782732 100644 --- a/specification/inference/get_model/GetModelResponse.ts +++ b/specification/inference/get_model/GetModelResponse.ts @@ -20,5 +20,7 @@ import { ModelConfigContainer } from '@inference/_types/Services' export class Response { - body: ModelConfigContainer + body: { + models: Array + } }