@meetkai/mka1 0.53.31 → 0.53.33
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/bin/mcp-server.js +53 -13
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/inputmessage.d.ts +4 -1
- package/dist/commonjs/models/components/inputmessage.d.ts.map +1 -1
- package/dist/commonjs/models/components/inputmessage.js +2 -2
- package/dist/commonjs/models/components/inputmessage.js.map +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +29 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +31 -1
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +29 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +31 -1
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/inputmessage.d.ts +4 -1
- package/dist/esm/models/components/inputmessage.d.ts.map +1 -1
- package/dist/esm/models/components/inputmessage.js +2 -2
- package/dist/esm/models/components/inputmessage.js.map +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +29 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +28 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +29 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +28 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/inputmessage.ts +6 -3
- package/src/models/operations/getmodel.ts +69 -0
- package/src/models/operations/listmodels.ts +73 -0
|
@@ -43,12 +43,39 @@ export const ModelType$inboundSchema = z
|
|
|
43
43
|
/** @internal */
|
|
44
44
|
export const ModelType$outboundSchema = ModelType$inboundSchema;
|
|
45
45
|
/** @internal */
|
|
46
|
+
export const Capabilities$inboundSchema = z.object({
|
|
47
|
+
supports_temperature: z.boolean(),
|
|
48
|
+
supports_top_p: z.boolean(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"supports_temperature": "supportsTemperature",
|
|
52
|
+
"supports_top_p": "supportsTopP",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const Capabilities$outboundSchema = z.object({
|
|
57
|
+
supportsTemperature: z.boolean(),
|
|
58
|
+
supportsTopP: z.boolean(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
supportsTemperature: "supports_temperature",
|
|
62
|
+
supportsTopP: "supports_top_p",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
export function capabilitiesToJSON(capabilities) {
|
|
66
|
+
return JSON.stringify(Capabilities$outboundSchema.parse(capabilities));
|
|
67
|
+
}
|
|
68
|
+
export function capabilitiesFromJSON(jsonString) {
|
|
69
|
+
return safeParse(jsonString, (x) => Capabilities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Capabilities' from JSON`);
|
|
70
|
+
}
|
|
71
|
+
/** @internal */
|
|
46
72
|
export const GetModelResponseBody$inboundSchema = z.object({
|
|
47
73
|
id: z.string(),
|
|
48
74
|
object: z.literal("model"),
|
|
49
75
|
created: z.number().int(),
|
|
50
76
|
owned_by: z.string(),
|
|
51
77
|
model_type: ModelType$inboundSchema,
|
|
78
|
+
capabilities: z.lazy(() => Capabilities$inboundSchema),
|
|
52
79
|
}).transform((v) => {
|
|
53
80
|
return remap$(v, {
|
|
54
81
|
"owned_by": "ownedBy",
|
|
@@ -62,6 +89,7 @@ export const GetModelResponseBody$outboundSchema = z.object({
|
|
|
62
89
|
created: z.number().int(),
|
|
63
90
|
ownedBy: z.string(),
|
|
64
91
|
modelType: ModelType$outboundSchema,
|
|
92
|
+
capabilities: z.lazy(() => Capabilities$outboundSchema),
|
|
65
93
|
}).transform((v) => {
|
|
66
94
|
return remap$(v, {
|
|
67
95
|
ownedBy: "owned_by",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getmodel.js","sourceRoot":"","sources":["../../../../src/models/operations/getmodel.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAajD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"getmodel.js","sourceRoot":"","sources":["../../../../src/models/operations/getmodel.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAajD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ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CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -16,12 +16,29 @@ export declare const ListModelsModelType: {
|
|
|
16
16
|
readonly TextToSpeech: "text_to_speech";
|
|
17
17
|
};
|
|
18
18
|
export type ListModelsModelType = ClosedEnum<typeof ListModelsModelType>;
|
|
19
|
+
/**
|
|
20
|
+
* Curated public sampling capabilities for this model.
|
|
21
|
+
*/
|
|
22
|
+
export type ListModelsCapabilities = {
|
|
23
|
+
/**
|
|
24
|
+
* Whether an LLM accepts the temperature parameter on chat-shaped generation routes; false for non-LLM models.
|
|
25
|
+
*/
|
|
26
|
+
supportsTemperature: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether an LLM accepts the top_p parameter on chat-shaped generation routes; false for non-LLM models.
|
|
29
|
+
*/
|
|
30
|
+
supportsTopP: boolean;
|
|
31
|
+
};
|
|
19
32
|
export type ListModelsData = {
|
|
20
33
|
id: string;
|
|
21
34
|
object: "model";
|
|
22
35
|
created: number;
|
|
23
36
|
ownedBy: string;
|
|
24
37
|
modelType: ListModelsModelType;
|
|
38
|
+
/**
|
|
39
|
+
* Curated public sampling capabilities for this model.
|
|
40
|
+
*/
|
|
41
|
+
capabilities: ListModelsCapabilities;
|
|
25
42
|
};
|
|
26
43
|
/**
|
|
27
44
|
* OK
|
|
@@ -45,6 +62,17 @@ export declare const ListModelsModelType$inboundSchema: z.ZodNativeEnum<typeof L
|
|
|
45
62
|
/** @internal */
|
|
46
63
|
export declare const ListModelsModelType$outboundSchema: z.ZodNativeEnum<typeof ListModelsModelType>;
|
|
47
64
|
/** @internal */
|
|
65
|
+
export declare const ListModelsCapabilities$inboundSchema: z.ZodType<ListModelsCapabilities, z.ZodTypeDef, unknown>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export type ListModelsCapabilities$Outbound = {
|
|
68
|
+
supports_temperature: boolean;
|
|
69
|
+
supports_top_p: boolean;
|
|
70
|
+
};
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const ListModelsCapabilities$outboundSchema: z.ZodType<ListModelsCapabilities$Outbound, z.ZodTypeDef, ListModelsCapabilities>;
|
|
73
|
+
export declare function listModelsCapabilitiesToJSON(listModelsCapabilities: ListModelsCapabilities): string;
|
|
74
|
+
export declare function listModelsCapabilitiesFromJSON(jsonString: string): SafeParseResult<ListModelsCapabilities, SDKValidationError>;
|
|
75
|
+
/** @internal */
|
|
48
76
|
export declare const ListModelsData$inboundSchema: z.ZodType<ListModelsData, z.ZodTypeDef, unknown>;
|
|
49
77
|
/** @internal */
|
|
50
78
|
export type ListModelsData$Outbound = {
|
|
@@ -53,6 +81,7 @@ export type ListModelsData$Outbound = {
|
|
|
53
81
|
created: number;
|
|
54
82
|
owned_by: string;
|
|
55
83
|
model_type: string;
|
|
84
|
+
capabilities: ListModelsCapabilities$Outbound;
|
|
56
85
|
};
|
|
57
86
|
/** @internal */
|
|
58
87
|
export declare const ListModelsData$outboundSchema: z.ZodType<ListModelsData$Outbound, z.ZodTypeDef, ListModelsData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listmodels.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listmodels.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,UAAU,CA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C5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -38,12 +38,39 @@ export const ListModelsModelType$inboundSchema = z.nativeEnum(ListModelsModelTyp
|
|
|
38
38
|
/** @internal */
|
|
39
39
|
export const ListModelsModelType$outboundSchema = ListModelsModelType$inboundSchema;
|
|
40
40
|
/** @internal */
|
|
41
|
+
export const ListModelsCapabilities$inboundSchema = z.object({
|
|
42
|
+
supports_temperature: z.boolean(),
|
|
43
|
+
supports_top_p: z.boolean(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"supports_temperature": "supportsTemperature",
|
|
47
|
+
"supports_top_p": "supportsTopP",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ListModelsCapabilities$outboundSchema = z.object({
|
|
52
|
+
supportsTemperature: z.boolean(),
|
|
53
|
+
supportsTopP: z.boolean(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
supportsTemperature: "supports_temperature",
|
|
57
|
+
supportsTopP: "supports_top_p",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
export function listModelsCapabilitiesToJSON(listModelsCapabilities) {
|
|
61
|
+
return JSON.stringify(ListModelsCapabilities$outboundSchema.parse(listModelsCapabilities));
|
|
62
|
+
}
|
|
63
|
+
export function listModelsCapabilitiesFromJSON(jsonString) {
|
|
64
|
+
return safeParse(jsonString, (x) => ListModelsCapabilities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListModelsCapabilities' from JSON`);
|
|
65
|
+
}
|
|
66
|
+
/** @internal */
|
|
41
67
|
export const ListModelsData$inboundSchema = z.object({
|
|
42
68
|
id: z.string(),
|
|
43
69
|
object: z.literal("model"),
|
|
44
70
|
created: z.number().int(),
|
|
45
71
|
owned_by: z.string(),
|
|
46
72
|
model_type: ListModelsModelType$inboundSchema,
|
|
73
|
+
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
47
74
|
}).transform((v) => {
|
|
48
75
|
return remap$(v, {
|
|
49
76
|
"owned_by": "ownedBy",
|
|
@@ -57,6 +84,7 @@ export const ListModelsData$outboundSchema = z.object({
|
|
|
57
84
|
created: z.number().int(),
|
|
58
85
|
ownedBy: z.string(),
|
|
59
86
|
modelType: ListModelsModelType$outboundSchema,
|
|
87
|
+
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
60
88
|
}).transform((v) => {
|
|
61
89
|
return remap$(v, {
|
|
62
90
|
ownedBy: "owned_by",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listmodels.js","sourceRoot":"","sources":["../../../../src/models/operations/listmodels.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAYjD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,gBAAgB;IAC9B,YAAY,EAAE,gBAAgB;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"listmodels.js","sourceRoot":"","sources":["../../../../src/models/operations/listmodels.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAYjD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,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B;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC,CAAC;CAC1D,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC,CAAC;CAC3D,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.53.
|
|
68
|
+
sdkVersion: "0.53.33",
|
|
69
69
|
genVersion: "2.932.9",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.53.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.53.33 2.932.9 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -58,6 +58,9 @@ export type InputMessage = {
|
|
|
58
58
|
* The processing status of an individual item. 'in_progress' means currently processing, 'completed' means finished successfully, 'incomplete' means processing stopped before completion.
|
|
59
59
|
*/
|
|
60
60
|
status?: Status | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The unique ID of this message item. Optional for input items; ids must be unique within a request.
|
|
63
|
+
*/
|
|
61
64
|
id?: string | undefined;
|
|
62
65
|
};
|
|
63
66
|
|
|
@@ -115,7 +118,7 @@ export const InputMessage$inboundSchema: z.ZodType<
|
|
|
115
118
|
role: InputMessageRole$inboundSchema,
|
|
116
119
|
content: z.union([z.string(), z.array(InputMessageContent$inboundSchema)]),
|
|
117
120
|
status: Status$inboundSchema.optional(),
|
|
118
|
-
id: z.string().
|
|
121
|
+
id: z.string().optional(),
|
|
119
122
|
});
|
|
120
123
|
/** @internal */
|
|
121
124
|
export type InputMessage$Outbound = {
|
|
@@ -123,7 +126,7 @@ export type InputMessage$Outbound = {
|
|
|
123
126
|
role: string;
|
|
124
127
|
content: string | Array<InputMessageContent$Outbound>;
|
|
125
128
|
status?: string | undefined;
|
|
126
|
-
id
|
|
129
|
+
id?: string | undefined;
|
|
127
130
|
};
|
|
128
131
|
|
|
129
132
|
/** @internal */
|
|
@@ -136,7 +139,7 @@ export const InputMessage$outboundSchema: z.ZodType<
|
|
|
136
139
|
role: InputMessageRole$outboundSchema,
|
|
137
140
|
content: z.union([z.string(), z.array(InputMessageContent$outboundSchema)]),
|
|
138
141
|
status: Status$outboundSchema.optional(),
|
|
139
|
-
id: z.string().
|
|
142
|
+
id: z.string().optional(),
|
|
140
143
|
});
|
|
141
144
|
|
|
142
145
|
export function inputMessageToJSON(inputMessage: InputMessage): string {
|
|
@@ -26,6 +26,20 @@ export const ModelType = {
|
|
|
26
26
|
} as const;
|
|
27
27
|
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Curated public sampling capabilities for this model.
|
|
31
|
+
*/
|
|
32
|
+
export type Capabilities = {
|
|
33
|
+
/**
|
|
34
|
+
* Whether an LLM accepts the temperature parameter on chat-shaped generation routes; false for non-LLM models.
|
|
35
|
+
*/
|
|
36
|
+
supportsTemperature: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether an LLM accepts the top_p parameter on chat-shaped generation routes; false for non-LLM models.
|
|
39
|
+
*/
|
|
40
|
+
supportsTopP: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
29
43
|
/**
|
|
30
44
|
* OK
|
|
31
45
|
*/
|
|
@@ -35,6 +49,10 @@ export type GetModelResponseBody = {
|
|
|
35
49
|
created: number;
|
|
36
50
|
ownedBy: string;
|
|
37
51
|
modelType: ModelType;
|
|
52
|
+
/**
|
|
53
|
+
* Curated public sampling capabilities for this model.
|
|
54
|
+
*/
|
|
55
|
+
capabilities: Capabilities;
|
|
38
56
|
};
|
|
39
57
|
|
|
40
58
|
/** @internal */
|
|
@@ -94,6 +112,54 @@ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
|
94
112
|
export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
|
|
95
113
|
ModelType$inboundSchema;
|
|
96
114
|
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const Capabilities$inboundSchema: z.ZodType<
|
|
117
|
+
Capabilities,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
unknown
|
|
120
|
+
> = z.object({
|
|
121
|
+
supports_temperature: z.boolean(),
|
|
122
|
+
supports_top_p: z.boolean(),
|
|
123
|
+
}).transform((v) => {
|
|
124
|
+
return remap$(v, {
|
|
125
|
+
"supports_temperature": "supportsTemperature",
|
|
126
|
+
"supports_top_p": "supportsTopP",
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
/** @internal */
|
|
130
|
+
export type Capabilities$Outbound = {
|
|
131
|
+
supports_temperature: boolean;
|
|
132
|
+
supports_top_p: boolean;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const Capabilities$outboundSchema: z.ZodType<
|
|
137
|
+
Capabilities$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
Capabilities
|
|
140
|
+
> = z.object({
|
|
141
|
+
supportsTemperature: z.boolean(),
|
|
142
|
+
supportsTopP: z.boolean(),
|
|
143
|
+
}).transform((v) => {
|
|
144
|
+
return remap$(v, {
|
|
145
|
+
supportsTemperature: "supports_temperature",
|
|
146
|
+
supportsTopP: "supports_top_p",
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
export function capabilitiesToJSON(capabilities: Capabilities): string {
|
|
151
|
+
return JSON.stringify(Capabilities$outboundSchema.parse(capabilities));
|
|
152
|
+
}
|
|
153
|
+
export function capabilitiesFromJSON(
|
|
154
|
+
jsonString: string,
|
|
155
|
+
): SafeParseResult<Capabilities, SDKValidationError> {
|
|
156
|
+
return safeParse(
|
|
157
|
+
jsonString,
|
|
158
|
+
(x) => Capabilities$inboundSchema.parse(JSON.parse(x)),
|
|
159
|
+
`Failed to parse 'Capabilities' from JSON`,
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
97
163
|
/** @internal */
|
|
98
164
|
export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
99
165
|
GetModelResponseBody,
|
|
@@ -105,6 +171,7 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
105
171
|
created: z.number().int(),
|
|
106
172
|
owned_by: z.string(),
|
|
107
173
|
model_type: ModelType$inboundSchema,
|
|
174
|
+
capabilities: z.lazy(() => Capabilities$inboundSchema),
|
|
108
175
|
}).transform((v) => {
|
|
109
176
|
return remap$(v, {
|
|
110
177
|
"owned_by": "ownedBy",
|
|
@@ -118,6 +185,7 @@ export type GetModelResponseBody$Outbound = {
|
|
|
118
185
|
created: number;
|
|
119
186
|
owned_by: string;
|
|
120
187
|
model_type: string;
|
|
188
|
+
capabilities: Capabilities$Outbound;
|
|
121
189
|
};
|
|
122
190
|
|
|
123
191
|
/** @internal */
|
|
@@ -131,6 +199,7 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
131
199
|
created: z.number().int(),
|
|
132
200
|
ownedBy: z.string(),
|
|
133
201
|
modelType: ModelType$outboundSchema,
|
|
202
|
+
capabilities: z.lazy(() => Capabilities$outboundSchema),
|
|
134
203
|
}).transform((v) => {
|
|
135
204
|
return remap$(v, {
|
|
136
205
|
ownedBy: "owned_by",
|
|
@@ -25,12 +25,30 @@ export const ListModelsModelType = {
|
|
|
25
25
|
} as const;
|
|
26
26
|
export type ListModelsModelType = ClosedEnum<typeof ListModelsModelType>;
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Curated public sampling capabilities for this model.
|
|
30
|
+
*/
|
|
31
|
+
export type ListModelsCapabilities = {
|
|
32
|
+
/**
|
|
33
|
+
* Whether an LLM accepts the temperature parameter on chat-shaped generation routes; false for non-LLM models.
|
|
34
|
+
*/
|
|
35
|
+
supportsTemperature: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether an LLM accepts the top_p parameter on chat-shaped generation routes; false for non-LLM models.
|
|
38
|
+
*/
|
|
39
|
+
supportsTopP: boolean;
|
|
40
|
+
};
|
|
41
|
+
|
|
28
42
|
export type ListModelsData = {
|
|
29
43
|
id: string;
|
|
30
44
|
object: "model";
|
|
31
45
|
created: number;
|
|
32
46
|
ownedBy: string;
|
|
33
47
|
modelType: ListModelsModelType;
|
|
48
|
+
/**
|
|
49
|
+
* Curated public sampling capabilities for this model.
|
|
50
|
+
*/
|
|
51
|
+
capabilities: ListModelsCapabilities;
|
|
34
52
|
};
|
|
35
53
|
|
|
36
54
|
/**
|
|
@@ -97,6 +115,58 @@ export const ListModelsModelType$outboundSchema: z.ZodNativeEnum<
|
|
|
97
115
|
typeof ListModelsModelType
|
|
98
116
|
> = ListModelsModelType$inboundSchema;
|
|
99
117
|
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const ListModelsCapabilities$inboundSchema: z.ZodType<
|
|
120
|
+
ListModelsCapabilities,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.object({
|
|
124
|
+
supports_temperature: z.boolean(),
|
|
125
|
+
supports_top_p: z.boolean(),
|
|
126
|
+
}).transform((v) => {
|
|
127
|
+
return remap$(v, {
|
|
128
|
+
"supports_temperature": "supportsTemperature",
|
|
129
|
+
"supports_top_p": "supportsTopP",
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
/** @internal */
|
|
133
|
+
export type ListModelsCapabilities$Outbound = {
|
|
134
|
+
supports_temperature: boolean;
|
|
135
|
+
supports_top_p: boolean;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const ListModelsCapabilities$outboundSchema: z.ZodType<
|
|
140
|
+
ListModelsCapabilities$Outbound,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
ListModelsCapabilities
|
|
143
|
+
> = z.object({
|
|
144
|
+
supportsTemperature: z.boolean(),
|
|
145
|
+
supportsTopP: z.boolean(),
|
|
146
|
+
}).transform((v) => {
|
|
147
|
+
return remap$(v, {
|
|
148
|
+
supportsTemperature: "supports_temperature",
|
|
149
|
+
supportsTopP: "supports_top_p",
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
export function listModelsCapabilitiesToJSON(
|
|
154
|
+
listModelsCapabilities: ListModelsCapabilities,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
ListModelsCapabilities$outboundSchema.parse(listModelsCapabilities),
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
export function listModelsCapabilitiesFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<ListModelsCapabilities, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => ListModelsCapabilities$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'ListModelsCapabilities' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
100
170
|
/** @internal */
|
|
101
171
|
export const ListModelsData$inboundSchema: z.ZodType<
|
|
102
172
|
ListModelsData,
|
|
@@ -108,6 +178,7 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
108
178
|
created: z.number().int(),
|
|
109
179
|
owned_by: z.string(),
|
|
110
180
|
model_type: ListModelsModelType$inboundSchema,
|
|
181
|
+
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
111
182
|
}).transform((v) => {
|
|
112
183
|
return remap$(v, {
|
|
113
184
|
"owned_by": "ownedBy",
|
|
@@ -121,6 +192,7 @@ export type ListModelsData$Outbound = {
|
|
|
121
192
|
created: number;
|
|
122
193
|
owned_by: string;
|
|
123
194
|
model_type: string;
|
|
195
|
+
capabilities: ListModelsCapabilities$Outbound;
|
|
124
196
|
};
|
|
125
197
|
|
|
126
198
|
/** @internal */
|
|
@@ -134,6 +206,7 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
134
206
|
created: z.number().int(),
|
|
135
207
|
ownedBy: z.string(),
|
|
136
208
|
modelType: ListModelsModelType$outboundSchema,
|
|
209
|
+
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
137
210
|
}).transform((v) => {
|
|
138
211
|
return remap$(v, {
|
|
139
212
|
ownedBy: "owned_by",
|