@meetkai/mka1 0.54.77 → 0.54.80
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 +120 -28
- package/bin/mcp-server.js.map +39 -39
- package/dist/commonjs/funcs/llmVectorStoresCancelFileBatch.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCancelFileBatch.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresDeleteFile.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresDeleteFile.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGet.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGet.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGetFile.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGetFile.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGetFileBatch.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGetFileBatch.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGetFileContent.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresGetFileContent.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresListFiles.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresListFiles.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresListFilesInBatch.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresListFilesInBatch.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresSearch.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresSearch.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresUpdate.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresUpdate.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresUpdateFile.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresUpdateFile.js +1 -1
- 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/mcp-server/tools/llmVectorStoresCancelFileBatch.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCancelFileBatch.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresDeleteFile.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresDeleteFile.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGet.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGetFile.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGetFile.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGetFileBatch.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGetFileBatch.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGetFileContent.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresGetFileContent.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresListFiles.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresListFiles.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresListFilesInBatch.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresListFilesInBatch.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresSearch.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresSearch.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresUpdate.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresUpdate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresUpdateFile.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresUpdateFile.js.map +1 -1
- package/dist/commonjs/models/components/createvectorstorerequest.d.ts +1 -1
- package/dist/commonjs/models/components/filesearchtooldefinition.d.ts +3 -0
- package/dist/commonjs/models/components/filesearchtooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/filesearchtooldefinition.js.map +1 -1
- package/dist/commonjs/models/components/modifyvectorstorerequest.d.ts +1 -1
- package/dist/commonjs/models/components/openaichatcompletionrequestparams.d.ts +1 -1
- package/dist/commonjs/models/components/responseobject.d.ts +3 -0
- package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
- package/dist/commonjs/models/components/responseobject.js.map +1 -1
- package/dist/commonjs/models/components/vectorstore.d.ts +3 -3
- package/dist/commonjs/models/operations/getmodel.d.ts +93 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +77 -1
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +93 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +77 -1
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCancelFileBatch.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCancelFileBatch.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresDeleteFile.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresDeleteFile.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresGet.d.ts +2 -2
- package/dist/commonjs/react-query/llmVectorStoresGet.js +2 -2
- package/dist/commonjs/react-query/llmVectorStoresGetFile.d.ts +2 -2
- package/dist/commonjs/react-query/llmVectorStoresGetFile.js +2 -2
- package/dist/commonjs/react-query/llmVectorStoresGetFileBatch.d.ts +2 -2
- package/dist/commonjs/react-query/llmVectorStoresGetFileBatch.js +2 -2
- package/dist/commonjs/react-query/llmVectorStoresGetFileContent.d.ts +2 -2
- package/dist/commonjs/react-query/llmVectorStoresGetFileContent.js +2 -2
- package/dist/commonjs/react-query/llmVectorStoresListFiles.d.ts +2 -2
- package/dist/commonjs/react-query/llmVectorStoresListFiles.js +2 -2
- package/dist/commonjs/react-query/llmVectorStoresListFilesInBatch.d.ts +2 -2
- package/dist/commonjs/react-query/llmVectorStoresListFilesInBatch.js +2 -2
- package/dist/commonjs/react-query/llmVectorStoresSearch.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresSearch.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresUpdate.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresUpdate.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresUpdateFile.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresUpdateFile.js +1 -1
- package/dist/commonjs/sdk/vectorstores.d.ts +13 -13
- package/dist/commonjs/sdk/vectorstores.js +13 -13
- package/dist/esm/funcs/llmVectorStoresCancelFileBatch.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCancelFileBatch.js +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/funcs/llmVectorStoresDeleteFile.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresDeleteFile.js +1 -1
- package/dist/esm/funcs/llmVectorStoresGet.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresGet.js +1 -1
- package/dist/esm/funcs/llmVectorStoresGetFile.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresGetFile.js +1 -1
- package/dist/esm/funcs/llmVectorStoresGetFileBatch.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresGetFileBatch.js +1 -1
- package/dist/esm/funcs/llmVectorStoresGetFileContent.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresGetFileContent.js +1 -1
- package/dist/esm/funcs/llmVectorStoresListFiles.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresListFiles.js +1 -1
- package/dist/esm/funcs/llmVectorStoresListFilesInBatch.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresListFilesInBatch.js +1 -1
- package/dist/esm/funcs/llmVectorStoresSearch.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresSearch.js +1 -1
- package/dist/esm/funcs/llmVectorStoresUpdate.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresUpdate.js +1 -1
- package/dist/esm/funcs/llmVectorStoresUpdateFile.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresUpdateFile.js +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/mcp-server/tools/llmVectorStoresCancelFileBatch.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCancelFileBatch.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresDeleteFile.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresDeleteFile.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGet.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGet.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGetFile.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGetFile.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGetFileBatch.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGetFileBatch.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGetFileContent.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresGetFileContent.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresListFiles.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresListFiles.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresListFilesInBatch.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresListFilesInBatch.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresSearch.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresSearch.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresUpdate.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresUpdate.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresUpdateFile.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresUpdateFile.js.map +1 -1
- package/dist/esm/models/components/createvectorstorerequest.d.ts +1 -1
- package/dist/esm/models/components/filesearchtooldefinition.d.ts +3 -0
- package/dist/esm/models/components/filesearchtooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/filesearchtooldefinition.js.map +1 -1
- package/dist/esm/models/components/modifyvectorstorerequest.d.ts +1 -1
- package/dist/esm/models/components/openaichatcompletionrequestparams.d.ts +1 -1
- package/dist/esm/models/components/responseobject.d.ts +3 -0
- package/dist/esm/models/components/responseobject.d.ts.map +1 -1
- package/dist/esm/models/components/responseobject.js.map +1 -1
- package/dist/esm/models/components/vectorstore.d.ts +3 -3
- package/dist/esm/models/operations/getmodel.d.ts +93 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +70 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +93 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +70 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/react-query/llmVectorStoresCancelFileBatch.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCancelFileBatch.js +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/react-query/llmVectorStoresDeleteFile.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresDeleteFile.js +1 -1
- package/dist/esm/react-query/llmVectorStoresGet.d.ts +2 -2
- package/dist/esm/react-query/llmVectorStoresGet.js +2 -2
- package/dist/esm/react-query/llmVectorStoresGetFile.d.ts +2 -2
- package/dist/esm/react-query/llmVectorStoresGetFile.js +2 -2
- package/dist/esm/react-query/llmVectorStoresGetFileBatch.d.ts +2 -2
- package/dist/esm/react-query/llmVectorStoresGetFileBatch.js +2 -2
- package/dist/esm/react-query/llmVectorStoresGetFileContent.d.ts +2 -2
- package/dist/esm/react-query/llmVectorStoresGetFileContent.js +2 -2
- package/dist/esm/react-query/llmVectorStoresListFiles.d.ts +2 -2
- package/dist/esm/react-query/llmVectorStoresListFiles.js +2 -2
- package/dist/esm/react-query/llmVectorStoresListFilesInBatch.d.ts +2 -2
- package/dist/esm/react-query/llmVectorStoresListFilesInBatch.js +2 -2
- package/dist/esm/react-query/llmVectorStoresSearch.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresSearch.js +1 -1
- package/dist/esm/react-query/llmVectorStoresUpdate.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresUpdate.js +1 -1
- package/dist/esm/react-query/llmVectorStoresUpdateFile.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresUpdateFile.js +1 -1
- package/dist/esm/sdk/vectorstores.d.ts +13 -13
- package/dist/esm/sdk/vectorstores.js +13 -13
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmVectorStoresCancelFileBatch.ts +1 -1
- package/src/funcs/llmVectorStoresCreateFile.ts +1 -1
- package/src/funcs/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/funcs/llmVectorStoresDeleteFile.ts +1 -1
- package/src/funcs/llmVectorStoresGet.ts +1 -1
- package/src/funcs/llmVectorStoresGetFile.ts +1 -1
- package/src/funcs/llmVectorStoresGetFileBatch.ts +1 -1
- package/src/funcs/llmVectorStoresGetFileContent.ts +1 -1
- package/src/funcs/llmVectorStoresListFiles.ts +1 -1
- package/src/funcs/llmVectorStoresListFilesInBatch.ts +1 -1
- package/src/funcs/llmVectorStoresSearch.ts +1 -1
- package/src/funcs/llmVectorStoresUpdate.ts +1 -1
- package/src/funcs/llmVectorStoresUpdateFile.ts +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/mcp-server/tools/llmVectorStoresCancelFileBatch.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreateFile.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresDeleteFile.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresGet.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresGetFile.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresGetFileBatch.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresGetFileContent.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresListFiles.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresListFilesInBatch.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresSearch.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresUpdate.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresUpdateFile.ts +1 -1
- package/src/models/components/createvectorstorerequest.ts +1 -1
- package/src/models/components/filesearchtooldefinition.ts +3 -0
- package/src/models/components/modifyvectorstorerequest.ts +1 -1
- package/src/models/components/openaichatcompletionrequestparams.ts +1 -1
- package/src/models/components/responseobject.ts +3 -0
- package/src/models/components/vectorstore.ts +3 -3
- package/src/models/operations/getmodel.ts +223 -0
- package/src/models/operations/listmodels.ts +229 -0
- package/src/react-query/llmVectorStoresCancelFileBatch.ts +1 -1
- package/src/react-query/llmVectorStoresCreateFile.ts +1 -1
- package/src/react-query/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/react-query/llmVectorStoresDeleteFile.ts +1 -1
- package/src/react-query/llmVectorStoresGet.ts +2 -2
- package/src/react-query/llmVectorStoresGetFile.ts +2 -2
- package/src/react-query/llmVectorStoresGetFileBatch.ts +2 -2
- package/src/react-query/llmVectorStoresGetFileContent.ts +2 -2
- package/src/react-query/llmVectorStoresListFiles.ts +2 -2
- package/src/react-query/llmVectorStoresListFilesInBatch.ts +2 -2
- package/src/react-query/llmVectorStoresSearch.ts +1 -1
- package/src/react-query/llmVectorStoresUpdate.ts +1 -1
- package/src/react-query/llmVectorStoresUpdateFile.ts +1 -1
- package/src/sdk/vectorstores.ts +13 -13
|
@@ -27,6 +27,43 @@ export const ModelType = {
|
|
|
27
27
|
} as const;
|
|
28
28
|
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
29
29
|
|
|
30
|
+
export type MaxImageResolution = {
|
|
31
|
+
/**
|
|
32
|
+
* Width in pixels.
|
|
33
|
+
*/
|
|
34
|
+
width: number;
|
|
35
|
+
/**
|
|
36
|
+
* Height in pixels.
|
|
37
|
+
*/
|
|
38
|
+
height: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type MinImageResolution = {
|
|
42
|
+
/**
|
|
43
|
+
* Width in pixels.
|
|
44
|
+
*/
|
|
45
|
+
width: number;
|
|
46
|
+
/**
|
|
47
|
+
* Height in pixels.
|
|
48
|
+
*/
|
|
49
|
+
height: number;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type EmbeddingDimensionRange = {
|
|
53
|
+
/**
|
|
54
|
+
* Smallest output vector size the model declares support for.
|
|
55
|
+
*/
|
|
56
|
+
min: number;
|
|
57
|
+
/**
|
|
58
|
+
* Largest output vector size the model declares support for.
|
|
59
|
+
*/
|
|
60
|
+
max: number;
|
|
61
|
+
/**
|
|
62
|
+
* Declared default output vector size. Vector stores use it when created without `embedding_dimensions`; `/embeddings` does not apply it, so a request that omits `dimensions` gets the upstream's own default.
|
|
63
|
+
*/
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
|
|
30
67
|
/**
|
|
31
68
|
* Curated public generation capabilities for this model.
|
|
32
69
|
*/
|
|
@@ -47,6 +84,10 @@ export type Capabilities = {
|
|
|
47
84
|
* Whether chat-shaped generation routes forward the Responses `reasoning.effort` / chat-completions `reasoning_effort` parameter to this model; false for non-LLM models. When false the parameter is accepted and dropped. Accepted values are those of the route's `reasoning.effort` enum.
|
|
48
85
|
*/
|
|
49
86
|
supportsReasoningEffort: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Whether this LLM's upstream enforces a JSON-schema response format (structured outputs), mirroring the registry's `capabilities.supportsStructuredOutputs`. Null when the registry does not say. False for every non-LLM model, meaning not applicable rather than recorded as unsupported, so null occurs only on LLMs. The gateway forwards a requested schema whatever this reports; when false the upstream may not honour it. Judge-based `auto` routing treats anything but true as unsupported.
|
|
89
|
+
*/
|
|
90
|
+
supportsStructuredOutputs: boolean | null;
|
|
50
91
|
};
|
|
51
92
|
|
|
52
93
|
/**
|
|
@@ -66,6 +107,22 @@ export type GetModelResponseBody = {
|
|
|
66
107
|
* Modalities this model can produce, mirroring the registry's `capabilities.modalities.output`. Unconstrained strings rather than a closed enum so a new registry modality reaches clients without a breaking schema change.
|
|
67
108
|
*/
|
|
68
109
|
outputModalities: Array<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Context window in tokens, mirroring the registry's `contextWindow`. For an LLM it is the input plus output tokens one request can span: the Responses API trims the oldest conversation items to fit it, reserving nothing for the output, unless the request sets `truncation` to `disabled`, which rejects an oversized request instead; a separate request-size limit in bytes applies the same way. Chat completions forwards requests unchanged. For an embeddings model `/embeddings` derives its per-input character cap from it, which `GET /embeddings/models` reports as `max_input_length`; a gateway-wide per-input ceiling also applies. On other model types the gateway does not read it, so a recorded value is informational only and not enforced. Null when the registry does not record one.
|
|
112
|
+
*/
|
|
113
|
+
contextWindow: number | null;
|
|
114
|
+
/**
|
|
115
|
+
* Largest input image declared for this model, mirroring the registry's `capabilities.maxImageResolution`. A recorded bound does not mean the model accepts images; `input_modalities` decides that. Only the Responses API reads it, scaling a larger image down to fit before forwarding it and keeping its aspect ratio; no other endpoint, chat completions included, resizes for it. When a minimum is also set it is applied last, so an image with an extreme aspect ratio can still end up beyond this bound. Null when the registry does not record a limit.
|
|
116
|
+
*/
|
|
117
|
+
maxImageResolution: MaxImageResolution | null;
|
|
118
|
+
/**
|
|
119
|
+
* Smallest input image declared for this model, mirroring the registry's `capabilities.minImageResolution`. A recorded bound does not mean the model accepts images; `input_modalities` decides that. Only the Responses API reads it, scaling a smaller image up to meet it before forwarding it and keeping its aspect ratio; no other endpoint, chat completions included, resizes for it. Null when the registry does not record a limit.
|
|
120
|
+
*/
|
|
121
|
+
minImageResolution: MinImageResolution | null;
|
|
122
|
+
/**
|
|
123
|
+
* Output vector sizes declared for this model, mirroring the registry's `embeddingLimits.dimensions`, which is normally recorded only on embeddings models. A model with a single fixed size reports it as `min`, `max` and `default` alike, so when `min` equals `max` the size is fixed and a request should omit `dimensions`. Vector stores reject a size outside the range. `/embeddings` does not check it: it drops a requested `dimensions` for a fixed-size model and otherwise forwards it to the upstream. Null when the registry does not record dimensions; a vector store using such a model must then be created with an explicit size (`embedding_dimensions` on `POST /vector_stores`). Distinct from the vector store's own `embedding_dimensions`, which is a single size.
|
|
124
|
+
*/
|
|
125
|
+
embeddingDimensionRange: EmbeddingDimensionRange | null;
|
|
69
126
|
/**
|
|
70
127
|
* Total parameter count of the weights behind this model, mirroring the registry's `modelCard.parameterCount`. Null when the registry does not record one (closed-weight API models, or entries nobody has filled in yet).
|
|
71
128
|
*/
|
|
@@ -141,6 +198,135 @@ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
|
141
198
|
export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
|
|
142
199
|
ModelType$inboundSchema;
|
|
143
200
|
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const MaxImageResolution$inboundSchema: z.ZodType<
|
|
203
|
+
MaxImageResolution,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
unknown
|
|
206
|
+
> = z.object({
|
|
207
|
+
width: z.number().int(),
|
|
208
|
+
height: z.number().int(),
|
|
209
|
+
});
|
|
210
|
+
/** @internal */
|
|
211
|
+
export type MaxImageResolution$Outbound = {
|
|
212
|
+
width: number;
|
|
213
|
+
height: number;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const MaxImageResolution$outboundSchema: z.ZodType<
|
|
218
|
+
MaxImageResolution$Outbound,
|
|
219
|
+
z.ZodTypeDef,
|
|
220
|
+
MaxImageResolution
|
|
221
|
+
> = z.object({
|
|
222
|
+
width: z.number().int(),
|
|
223
|
+
height: z.number().int(),
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
export function maxImageResolutionToJSON(
|
|
227
|
+
maxImageResolution: MaxImageResolution,
|
|
228
|
+
): string {
|
|
229
|
+
return JSON.stringify(
|
|
230
|
+
MaxImageResolution$outboundSchema.parse(maxImageResolution),
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
export function maxImageResolutionFromJSON(
|
|
234
|
+
jsonString: string,
|
|
235
|
+
): SafeParseResult<MaxImageResolution, SDKValidationError> {
|
|
236
|
+
return safeParse(
|
|
237
|
+
jsonString,
|
|
238
|
+
(x) => MaxImageResolution$inboundSchema.parse(JSON.parse(x)),
|
|
239
|
+
`Failed to parse 'MaxImageResolution' from JSON`,
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** @internal */
|
|
244
|
+
export const MinImageResolution$inboundSchema: z.ZodType<
|
|
245
|
+
MinImageResolution,
|
|
246
|
+
z.ZodTypeDef,
|
|
247
|
+
unknown
|
|
248
|
+
> = z.object({
|
|
249
|
+
width: z.number().int(),
|
|
250
|
+
height: z.number().int(),
|
|
251
|
+
});
|
|
252
|
+
/** @internal */
|
|
253
|
+
export type MinImageResolution$Outbound = {
|
|
254
|
+
width: number;
|
|
255
|
+
height: number;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
/** @internal */
|
|
259
|
+
export const MinImageResolution$outboundSchema: z.ZodType<
|
|
260
|
+
MinImageResolution$Outbound,
|
|
261
|
+
z.ZodTypeDef,
|
|
262
|
+
MinImageResolution
|
|
263
|
+
> = z.object({
|
|
264
|
+
width: z.number().int(),
|
|
265
|
+
height: z.number().int(),
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
export function minImageResolutionToJSON(
|
|
269
|
+
minImageResolution: MinImageResolution,
|
|
270
|
+
): string {
|
|
271
|
+
return JSON.stringify(
|
|
272
|
+
MinImageResolution$outboundSchema.parse(minImageResolution),
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
export function minImageResolutionFromJSON(
|
|
276
|
+
jsonString: string,
|
|
277
|
+
): SafeParseResult<MinImageResolution, SDKValidationError> {
|
|
278
|
+
return safeParse(
|
|
279
|
+
jsonString,
|
|
280
|
+
(x) => MinImageResolution$inboundSchema.parse(JSON.parse(x)),
|
|
281
|
+
`Failed to parse 'MinImageResolution' from JSON`,
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/** @internal */
|
|
286
|
+
export const EmbeddingDimensionRange$inboundSchema: z.ZodType<
|
|
287
|
+
EmbeddingDimensionRange,
|
|
288
|
+
z.ZodTypeDef,
|
|
289
|
+
unknown
|
|
290
|
+
> = z.object({
|
|
291
|
+
min: z.number().int(),
|
|
292
|
+
max: z.number().int(),
|
|
293
|
+
default: z.number().int(),
|
|
294
|
+
});
|
|
295
|
+
/** @internal */
|
|
296
|
+
export type EmbeddingDimensionRange$Outbound = {
|
|
297
|
+
min: number;
|
|
298
|
+
max: number;
|
|
299
|
+
default: number;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
/** @internal */
|
|
303
|
+
export const EmbeddingDimensionRange$outboundSchema: z.ZodType<
|
|
304
|
+
EmbeddingDimensionRange$Outbound,
|
|
305
|
+
z.ZodTypeDef,
|
|
306
|
+
EmbeddingDimensionRange
|
|
307
|
+
> = z.object({
|
|
308
|
+
min: z.number().int(),
|
|
309
|
+
max: z.number().int(),
|
|
310
|
+
default: z.number().int(),
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
export function embeddingDimensionRangeToJSON(
|
|
314
|
+
embeddingDimensionRange: EmbeddingDimensionRange,
|
|
315
|
+
): string {
|
|
316
|
+
return JSON.stringify(
|
|
317
|
+
EmbeddingDimensionRange$outboundSchema.parse(embeddingDimensionRange),
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
export function embeddingDimensionRangeFromJSON(
|
|
321
|
+
jsonString: string,
|
|
322
|
+
): SafeParseResult<EmbeddingDimensionRange, SDKValidationError> {
|
|
323
|
+
return safeParse(
|
|
324
|
+
jsonString,
|
|
325
|
+
(x) => EmbeddingDimensionRange$inboundSchema.parse(JSON.parse(x)),
|
|
326
|
+
`Failed to parse 'EmbeddingDimensionRange' from JSON`,
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
144
330
|
/** @internal */
|
|
145
331
|
export const Capabilities$inboundSchema: z.ZodType<
|
|
146
332
|
Capabilities,
|
|
@@ -151,12 +337,14 @@ export const Capabilities$inboundSchema: z.ZodType<
|
|
|
151
337
|
supports_top_p: z.boolean(),
|
|
152
338
|
supports_reasoning: z.boolean(),
|
|
153
339
|
supports_reasoning_effort: z.boolean(),
|
|
340
|
+
supports_structured_outputs: z.nullable(z.boolean()),
|
|
154
341
|
}).transform((v) => {
|
|
155
342
|
return remap$(v, {
|
|
156
343
|
"supports_temperature": "supportsTemperature",
|
|
157
344
|
"supports_top_p": "supportsTopP",
|
|
158
345
|
"supports_reasoning": "supportsReasoning",
|
|
159
346
|
"supports_reasoning_effort": "supportsReasoningEffort",
|
|
347
|
+
"supports_structured_outputs": "supportsStructuredOutputs",
|
|
160
348
|
});
|
|
161
349
|
});
|
|
162
350
|
/** @internal */
|
|
@@ -165,6 +353,7 @@ export type Capabilities$Outbound = {
|
|
|
165
353
|
supports_top_p: boolean;
|
|
166
354
|
supports_reasoning: boolean;
|
|
167
355
|
supports_reasoning_effort: boolean;
|
|
356
|
+
supports_structured_outputs: boolean | null;
|
|
168
357
|
};
|
|
169
358
|
|
|
170
359
|
/** @internal */
|
|
@@ -177,12 +366,14 @@ export const Capabilities$outboundSchema: z.ZodType<
|
|
|
177
366
|
supportsTopP: z.boolean(),
|
|
178
367
|
supportsReasoning: z.boolean(),
|
|
179
368
|
supportsReasoningEffort: z.boolean(),
|
|
369
|
+
supportsStructuredOutputs: z.nullable(z.boolean()),
|
|
180
370
|
}).transform((v) => {
|
|
181
371
|
return remap$(v, {
|
|
182
372
|
supportsTemperature: "supports_temperature",
|
|
183
373
|
supportsTopP: "supports_top_p",
|
|
184
374
|
supportsReasoning: "supports_reasoning",
|
|
185
375
|
supportsReasoningEffort: "supports_reasoning_effort",
|
|
376
|
+
supportsStructuredOutputs: "supports_structured_outputs",
|
|
186
377
|
});
|
|
187
378
|
});
|
|
188
379
|
|
|
@@ -212,6 +403,16 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
212
403
|
model_type: ModelType$inboundSchema,
|
|
213
404
|
input_modalities: z.array(z.string()),
|
|
214
405
|
output_modalities: z.array(z.string()),
|
|
406
|
+
context_window: z.nullable(z.number().int()),
|
|
407
|
+
max_image_resolution: z.nullable(
|
|
408
|
+
z.lazy(() => MaxImageResolution$inboundSchema),
|
|
409
|
+
),
|
|
410
|
+
min_image_resolution: z.nullable(
|
|
411
|
+
z.lazy(() => MinImageResolution$inboundSchema),
|
|
412
|
+
),
|
|
413
|
+
embedding_dimension_range: z.nullable(
|
|
414
|
+
z.lazy(() => EmbeddingDimensionRange$inboundSchema),
|
|
415
|
+
),
|
|
215
416
|
parameter_count: z.nullable(z.number().int()),
|
|
216
417
|
active_parameter_count: z.nullable(z.number().int()),
|
|
217
418
|
release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
@@ -222,6 +423,10 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
222
423
|
"model_type": "modelType",
|
|
223
424
|
"input_modalities": "inputModalities",
|
|
224
425
|
"output_modalities": "outputModalities",
|
|
426
|
+
"context_window": "contextWindow",
|
|
427
|
+
"max_image_resolution": "maxImageResolution",
|
|
428
|
+
"min_image_resolution": "minImageResolution",
|
|
429
|
+
"embedding_dimension_range": "embeddingDimensionRange",
|
|
225
430
|
"parameter_count": "parameterCount",
|
|
226
431
|
"active_parameter_count": "activeParameterCount",
|
|
227
432
|
"release_date": "releaseDate",
|
|
@@ -236,6 +441,10 @@ export type GetModelResponseBody$Outbound = {
|
|
|
236
441
|
model_type: string;
|
|
237
442
|
input_modalities: Array<string>;
|
|
238
443
|
output_modalities: Array<string>;
|
|
444
|
+
context_window: number | null;
|
|
445
|
+
max_image_resolution: MaxImageResolution$Outbound | null;
|
|
446
|
+
min_image_resolution: MinImageResolution$Outbound | null;
|
|
447
|
+
embedding_dimension_range: EmbeddingDimensionRange$Outbound | null;
|
|
239
448
|
parameter_count: number | null;
|
|
240
449
|
active_parameter_count: number | null;
|
|
241
450
|
release_date: string | null;
|
|
@@ -255,6 +464,16 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
255
464
|
modelType: ModelType$outboundSchema,
|
|
256
465
|
inputModalities: z.array(z.string()),
|
|
257
466
|
outputModalities: z.array(z.string()),
|
|
467
|
+
contextWindow: z.nullable(z.number().int()),
|
|
468
|
+
maxImageResolution: z.nullable(
|
|
469
|
+
z.lazy(() => MaxImageResolution$outboundSchema),
|
|
470
|
+
),
|
|
471
|
+
minImageResolution: z.nullable(
|
|
472
|
+
z.lazy(() => MinImageResolution$outboundSchema),
|
|
473
|
+
),
|
|
474
|
+
embeddingDimensionRange: z.nullable(
|
|
475
|
+
z.lazy(() => EmbeddingDimensionRange$outboundSchema),
|
|
476
|
+
),
|
|
258
477
|
parameterCount: z.nullable(z.number().int()),
|
|
259
478
|
activeParameterCount: z.nullable(z.number().int()),
|
|
260
479
|
releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
@@ -265,6 +484,10 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
265
484
|
modelType: "model_type",
|
|
266
485
|
inputModalities: "input_modalities",
|
|
267
486
|
outputModalities: "output_modalities",
|
|
487
|
+
contextWindow: "context_window",
|
|
488
|
+
maxImageResolution: "max_image_resolution",
|
|
489
|
+
minImageResolution: "min_image_resolution",
|
|
490
|
+
embeddingDimensionRange: "embedding_dimension_range",
|
|
268
491
|
parameterCount: "parameter_count",
|
|
269
492
|
activeParameterCount: "active_parameter_count",
|
|
270
493
|
releaseDate: "release_date",
|
|
@@ -26,6 +26,43 @@ export const ListModelsModelType = {
|
|
|
26
26
|
} as const;
|
|
27
27
|
export type ListModelsModelType = ClosedEnum<typeof ListModelsModelType>;
|
|
28
28
|
|
|
29
|
+
export type ListModelsMaxImageResolution = {
|
|
30
|
+
/**
|
|
31
|
+
* Width in pixels.
|
|
32
|
+
*/
|
|
33
|
+
width: number;
|
|
34
|
+
/**
|
|
35
|
+
* Height in pixels.
|
|
36
|
+
*/
|
|
37
|
+
height: number;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type ListModelsMinImageResolution = {
|
|
41
|
+
/**
|
|
42
|
+
* Width in pixels.
|
|
43
|
+
*/
|
|
44
|
+
width: number;
|
|
45
|
+
/**
|
|
46
|
+
* Height in pixels.
|
|
47
|
+
*/
|
|
48
|
+
height: number;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type ListModelsEmbeddingDimensionRange = {
|
|
52
|
+
/**
|
|
53
|
+
* Smallest output vector size the model declares support for.
|
|
54
|
+
*/
|
|
55
|
+
min: number;
|
|
56
|
+
/**
|
|
57
|
+
* Largest output vector size the model declares support for.
|
|
58
|
+
*/
|
|
59
|
+
max: number;
|
|
60
|
+
/**
|
|
61
|
+
* Declared default output vector size. Vector stores use it when created without `embedding_dimensions`; `/embeddings` does not apply it, so a request that omits `dimensions` gets the upstream's own default.
|
|
62
|
+
*/
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
|
|
29
66
|
/**
|
|
30
67
|
* Curated public generation capabilities for this model.
|
|
31
68
|
*/
|
|
@@ -46,6 +83,10 @@ export type ListModelsCapabilities = {
|
|
|
46
83
|
* Whether chat-shaped generation routes forward the Responses `reasoning.effort` / chat-completions `reasoning_effort` parameter to this model; false for non-LLM models. When false the parameter is accepted and dropped. Accepted values are those of the route's `reasoning.effort` enum.
|
|
47
84
|
*/
|
|
48
85
|
supportsReasoningEffort: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether this LLM's upstream enforces a JSON-schema response format (structured outputs), mirroring the registry's `capabilities.supportsStructuredOutputs`. Null when the registry does not say. False for every non-LLM model, meaning not applicable rather than recorded as unsupported, so null occurs only on LLMs. The gateway forwards a requested schema whatever this reports; when false the upstream may not honour it. Judge-based `auto` routing treats anything but true as unsupported.
|
|
88
|
+
*/
|
|
89
|
+
supportsStructuredOutputs: boolean | null;
|
|
49
90
|
};
|
|
50
91
|
|
|
51
92
|
export type ListModelsData = {
|
|
@@ -62,6 +103,22 @@ export type ListModelsData = {
|
|
|
62
103
|
* Modalities this model can produce, mirroring the registry's `capabilities.modalities.output`. Unconstrained strings rather than a closed enum so a new registry modality reaches clients without a breaking schema change.
|
|
63
104
|
*/
|
|
64
105
|
outputModalities: Array<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Context window in tokens, mirroring the registry's `contextWindow`. For an LLM it is the input plus output tokens one request can span: the Responses API trims the oldest conversation items to fit it, reserving nothing for the output, unless the request sets `truncation` to `disabled`, which rejects an oversized request instead; a separate request-size limit in bytes applies the same way. Chat completions forwards requests unchanged. For an embeddings model `/embeddings` derives its per-input character cap from it, which `GET /embeddings/models` reports as `max_input_length`; a gateway-wide per-input ceiling also applies. On other model types the gateway does not read it, so a recorded value is informational only and not enforced. Null when the registry does not record one.
|
|
108
|
+
*/
|
|
109
|
+
contextWindow: number | null;
|
|
110
|
+
/**
|
|
111
|
+
* Largest input image declared for this model, mirroring the registry's `capabilities.maxImageResolution`. A recorded bound does not mean the model accepts images; `input_modalities` decides that. Only the Responses API reads it, scaling a larger image down to fit before forwarding it and keeping its aspect ratio; no other endpoint, chat completions included, resizes for it. When a minimum is also set it is applied last, so an image with an extreme aspect ratio can still end up beyond this bound. Null when the registry does not record a limit.
|
|
112
|
+
*/
|
|
113
|
+
maxImageResolution: ListModelsMaxImageResolution | null;
|
|
114
|
+
/**
|
|
115
|
+
* Smallest input image declared for this model, mirroring the registry's `capabilities.minImageResolution`. A recorded bound does not mean the model accepts images; `input_modalities` decides that. Only the Responses API reads it, scaling a smaller image up to meet it before forwarding it and keeping its aspect ratio; no other endpoint, chat completions included, resizes for it. Null when the registry does not record a limit.
|
|
116
|
+
*/
|
|
117
|
+
minImageResolution: ListModelsMinImageResolution | null;
|
|
118
|
+
/**
|
|
119
|
+
* Output vector sizes declared for this model, mirroring the registry's `embeddingLimits.dimensions`, which is normally recorded only on embeddings models. A model with a single fixed size reports it as `min`, `max` and `default` alike, so when `min` equals `max` the size is fixed and a request should omit `dimensions`. Vector stores reject a size outside the range. `/embeddings` does not check it: it drops a requested `dimensions` for a fixed-size model and otherwise forwards it to the upstream. Null when the registry does not record dimensions; a vector store using such a model must then be created with an explicit size (`embedding_dimensions` on `POST /vector_stores`). Distinct from the vector store's own `embedding_dimensions`, which is a single size.
|
|
120
|
+
*/
|
|
121
|
+
embeddingDimensionRange: ListModelsEmbeddingDimensionRange | null;
|
|
65
122
|
/**
|
|
66
123
|
* Total parameter count of the weights behind this model, mirroring the registry's `modelCard.parameterCount`. Null when the registry does not record one (closed-weight API models, or entries nobody has filled in yet).
|
|
67
124
|
*/
|
|
@@ -144,6 +201,141 @@ export const ListModelsModelType$outboundSchema: z.ZodNativeEnum<
|
|
|
144
201
|
typeof ListModelsModelType
|
|
145
202
|
> = ListModelsModelType$inboundSchema;
|
|
146
203
|
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const ListModelsMaxImageResolution$inboundSchema: z.ZodType<
|
|
206
|
+
ListModelsMaxImageResolution,
|
|
207
|
+
z.ZodTypeDef,
|
|
208
|
+
unknown
|
|
209
|
+
> = z.object({
|
|
210
|
+
width: z.number().int(),
|
|
211
|
+
height: z.number().int(),
|
|
212
|
+
});
|
|
213
|
+
/** @internal */
|
|
214
|
+
export type ListModelsMaxImageResolution$Outbound = {
|
|
215
|
+
width: number;
|
|
216
|
+
height: number;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
/** @internal */
|
|
220
|
+
export const ListModelsMaxImageResolution$outboundSchema: z.ZodType<
|
|
221
|
+
ListModelsMaxImageResolution$Outbound,
|
|
222
|
+
z.ZodTypeDef,
|
|
223
|
+
ListModelsMaxImageResolution
|
|
224
|
+
> = z.object({
|
|
225
|
+
width: z.number().int(),
|
|
226
|
+
height: z.number().int(),
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
export function listModelsMaxImageResolutionToJSON(
|
|
230
|
+
listModelsMaxImageResolution: ListModelsMaxImageResolution,
|
|
231
|
+
): string {
|
|
232
|
+
return JSON.stringify(
|
|
233
|
+
ListModelsMaxImageResolution$outboundSchema.parse(
|
|
234
|
+
listModelsMaxImageResolution,
|
|
235
|
+
),
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
export function listModelsMaxImageResolutionFromJSON(
|
|
239
|
+
jsonString: string,
|
|
240
|
+
): SafeParseResult<ListModelsMaxImageResolution, SDKValidationError> {
|
|
241
|
+
return safeParse(
|
|
242
|
+
jsonString,
|
|
243
|
+
(x) => ListModelsMaxImageResolution$inboundSchema.parse(JSON.parse(x)),
|
|
244
|
+
`Failed to parse 'ListModelsMaxImageResolution' from JSON`,
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const ListModelsMinImageResolution$inboundSchema: z.ZodType<
|
|
250
|
+
ListModelsMinImageResolution,
|
|
251
|
+
z.ZodTypeDef,
|
|
252
|
+
unknown
|
|
253
|
+
> = z.object({
|
|
254
|
+
width: z.number().int(),
|
|
255
|
+
height: z.number().int(),
|
|
256
|
+
});
|
|
257
|
+
/** @internal */
|
|
258
|
+
export type ListModelsMinImageResolution$Outbound = {
|
|
259
|
+
width: number;
|
|
260
|
+
height: number;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/** @internal */
|
|
264
|
+
export const ListModelsMinImageResolution$outboundSchema: z.ZodType<
|
|
265
|
+
ListModelsMinImageResolution$Outbound,
|
|
266
|
+
z.ZodTypeDef,
|
|
267
|
+
ListModelsMinImageResolution
|
|
268
|
+
> = z.object({
|
|
269
|
+
width: z.number().int(),
|
|
270
|
+
height: z.number().int(),
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
export function listModelsMinImageResolutionToJSON(
|
|
274
|
+
listModelsMinImageResolution: ListModelsMinImageResolution,
|
|
275
|
+
): string {
|
|
276
|
+
return JSON.stringify(
|
|
277
|
+
ListModelsMinImageResolution$outboundSchema.parse(
|
|
278
|
+
listModelsMinImageResolution,
|
|
279
|
+
),
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
export function listModelsMinImageResolutionFromJSON(
|
|
283
|
+
jsonString: string,
|
|
284
|
+
): SafeParseResult<ListModelsMinImageResolution, SDKValidationError> {
|
|
285
|
+
return safeParse(
|
|
286
|
+
jsonString,
|
|
287
|
+
(x) => ListModelsMinImageResolution$inboundSchema.parse(JSON.parse(x)),
|
|
288
|
+
`Failed to parse 'ListModelsMinImageResolution' from JSON`,
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/** @internal */
|
|
293
|
+
export const ListModelsEmbeddingDimensionRange$inboundSchema: z.ZodType<
|
|
294
|
+
ListModelsEmbeddingDimensionRange,
|
|
295
|
+
z.ZodTypeDef,
|
|
296
|
+
unknown
|
|
297
|
+
> = z.object({
|
|
298
|
+
min: z.number().int(),
|
|
299
|
+
max: z.number().int(),
|
|
300
|
+
default: z.number().int(),
|
|
301
|
+
});
|
|
302
|
+
/** @internal */
|
|
303
|
+
export type ListModelsEmbeddingDimensionRange$Outbound = {
|
|
304
|
+
min: number;
|
|
305
|
+
max: number;
|
|
306
|
+
default: number;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/** @internal */
|
|
310
|
+
export const ListModelsEmbeddingDimensionRange$outboundSchema: z.ZodType<
|
|
311
|
+
ListModelsEmbeddingDimensionRange$Outbound,
|
|
312
|
+
z.ZodTypeDef,
|
|
313
|
+
ListModelsEmbeddingDimensionRange
|
|
314
|
+
> = z.object({
|
|
315
|
+
min: z.number().int(),
|
|
316
|
+
max: z.number().int(),
|
|
317
|
+
default: z.number().int(),
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
export function listModelsEmbeddingDimensionRangeToJSON(
|
|
321
|
+
listModelsEmbeddingDimensionRange: ListModelsEmbeddingDimensionRange,
|
|
322
|
+
): string {
|
|
323
|
+
return JSON.stringify(
|
|
324
|
+
ListModelsEmbeddingDimensionRange$outboundSchema.parse(
|
|
325
|
+
listModelsEmbeddingDimensionRange,
|
|
326
|
+
),
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
export function listModelsEmbeddingDimensionRangeFromJSON(
|
|
330
|
+
jsonString: string,
|
|
331
|
+
): SafeParseResult<ListModelsEmbeddingDimensionRange, SDKValidationError> {
|
|
332
|
+
return safeParse(
|
|
333
|
+
jsonString,
|
|
334
|
+
(x) => ListModelsEmbeddingDimensionRange$inboundSchema.parse(JSON.parse(x)),
|
|
335
|
+
`Failed to parse 'ListModelsEmbeddingDimensionRange' from JSON`,
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
|
|
147
339
|
/** @internal */
|
|
148
340
|
export const ListModelsCapabilities$inboundSchema: z.ZodType<
|
|
149
341
|
ListModelsCapabilities,
|
|
@@ -154,12 +346,14 @@ export const ListModelsCapabilities$inboundSchema: z.ZodType<
|
|
|
154
346
|
supports_top_p: z.boolean(),
|
|
155
347
|
supports_reasoning: z.boolean(),
|
|
156
348
|
supports_reasoning_effort: z.boolean(),
|
|
349
|
+
supports_structured_outputs: z.nullable(z.boolean()),
|
|
157
350
|
}).transform((v) => {
|
|
158
351
|
return remap$(v, {
|
|
159
352
|
"supports_temperature": "supportsTemperature",
|
|
160
353
|
"supports_top_p": "supportsTopP",
|
|
161
354
|
"supports_reasoning": "supportsReasoning",
|
|
162
355
|
"supports_reasoning_effort": "supportsReasoningEffort",
|
|
356
|
+
"supports_structured_outputs": "supportsStructuredOutputs",
|
|
163
357
|
});
|
|
164
358
|
});
|
|
165
359
|
/** @internal */
|
|
@@ -168,6 +362,7 @@ export type ListModelsCapabilities$Outbound = {
|
|
|
168
362
|
supports_top_p: boolean;
|
|
169
363
|
supports_reasoning: boolean;
|
|
170
364
|
supports_reasoning_effort: boolean;
|
|
365
|
+
supports_structured_outputs: boolean | null;
|
|
171
366
|
};
|
|
172
367
|
|
|
173
368
|
/** @internal */
|
|
@@ -180,12 +375,14 @@ export const ListModelsCapabilities$outboundSchema: z.ZodType<
|
|
|
180
375
|
supportsTopP: z.boolean(),
|
|
181
376
|
supportsReasoning: z.boolean(),
|
|
182
377
|
supportsReasoningEffort: z.boolean(),
|
|
378
|
+
supportsStructuredOutputs: z.nullable(z.boolean()),
|
|
183
379
|
}).transform((v) => {
|
|
184
380
|
return remap$(v, {
|
|
185
381
|
supportsTemperature: "supports_temperature",
|
|
186
382
|
supportsTopP: "supports_top_p",
|
|
187
383
|
supportsReasoning: "supports_reasoning",
|
|
188
384
|
supportsReasoningEffort: "supports_reasoning_effort",
|
|
385
|
+
supportsStructuredOutputs: "supports_structured_outputs",
|
|
189
386
|
});
|
|
190
387
|
});
|
|
191
388
|
|
|
@@ -219,6 +416,16 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
219
416
|
model_type: ListModelsModelType$inboundSchema,
|
|
220
417
|
input_modalities: z.array(z.string()),
|
|
221
418
|
output_modalities: z.array(z.string()),
|
|
419
|
+
context_window: z.nullable(z.number().int()),
|
|
420
|
+
max_image_resolution: z.nullable(
|
|
421
|
+
z.lazy(() => ListModelsMaxImageResolution$inboundSchema),
|
|
422
|
+
),
|
|
423
|
+
min_image_resolution: z.nullable(
|
|
424
|
+
z.lazy(() => ListModelsMinImageResolution$inboundSchema),
|
|
425
|
+
),
|
|
426
|
+
embedding_dimension_range: z.nullable(
|
|
427
|
+
z.lazy(() => ListModelsEmbeddingDimensionRange$inboundSchema),
|
|
428
|
+
),
|
|
222
429
|
parameter_count: z.nullable(z.number().int()),
|
|
223
430
|
active_parameter_count: z.nullable(z.number().int()),
|
|
224
431
|
release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
@@ -229,6 +436,10 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
229
436
|
"model_type": "modelType",
|
|
230
437
|
"input_modalities": "inputModalities",
|
|
231
438
|
"output_modalities": "outputModalities",
|
|
439
|
+
"context_window": "contextWindow",
|
|
440
|
+
"max_image_resolution": "maxImageResolution",
|
|
441
|
+
"min_image_resolution": "minImageResolution",
|
|
442
|
+
"embedding_dimension_range": "embeddingDimensionRange",
|
|
232
443
|
"parameter_count": "parameterCount",
|
|
233
444
|
"active_parameter_count": "activeParameterCount",
|
|
234
445
|
"release_date": "releaseDate",
|
|
@@ -243,6 +454,10 @@ export type ListModelsData$Outbound = {
|
|
|
243
454
|
model_type: string;
|
|
244
455
|
input_modalities: Array<string>;
|
|
245
456
|
output_modalities: Array<string>;
|
|
457
|
+
context_window: number | null;
|
|
458
|
+
max_image_resolution: ListModelsMaxImageResolution$Outbound | null;
|
|
459
|
+
min_image_resolution: ListModelsMinImageResolution$Outbound | null;
|
|
460
|
+
embedding_dimension_range: ListModelsEmbeddingDimensionRange$Outbound | null;
|
|
246
461
|
parameter_count: number | null;
|
|
247
462
|
active_parameter_count: number | null;
|
|
248
463
|
release_date: string | null;
|
|
@@ -262,6 +477,16 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
262
477
|
modelType: ListModelsModelType$outboundSchema,
|
|
263
478
|
inputModalities: z.array(z.string()),
|
|
264
479
|
outputModalities: z.array(z.string()),
|
|
480
|
+
contextWindow: z.nullable(z.number().int()),
|
|
481
|
+
maxImageResolution: z.nullable(
|
|
482
|
+
z.lazy(() => ListModelsMaxImageResolution$outboundSchema),
|
|
483
|
+
),
|
|
484
|
+
minImageResolution: z.nullable(
|
|
485
|
+
z.lazy(() => ListModelsMinImageResolution$outboundSchema),
|
|
486
|
+
),
|
|
487
|
+
embeddingDimensionRange: z.nullable(
|
|
488
|
+
z.lazy(() => ListModelsEmbeddingDimensionRange$outboundSchema),
|
|
489
|
+
),
|
|
265
490
|
parameterCount: z.nullable(z.number().int()),
|
|
266
491
|
activeParameterCount: z.nullable(z.number().int()),
|
|
267
492
|
releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
@@ -272,6 +497,10 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
272
497
|
modelType: "model_type",
|
|
273
498
|
inputModalities: "input_modalities",
|
|
274
499
|
outputModalities: "output_modalities",
|
|
500
|
+
contextWindow: "context_window",
|
|
501
|
+
maxImageResolution: "max_image_resolution",
|
|
502
|
+
minImageResolution: "min_image_resolution",
|
|
503
|
+
embeddingDimensionRange: "embedding_dimension_range",
|
|
275
504
|
parameterCount: "parameter_count",
|
|
276
505
|
activeParameterCount: "active_parameter_count",
|
|
277
506
|
releaseDate: "release_date",
|
|
@@ -49,7 +49,7 @@ export type LlmVectorStoresCancelFileBatchMutationError =
|
|
|
49
49
|
* Cancel batch file processing
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Cancels an in-progress file batch operation.
|
|
52
|
+
* Cancels an in-progress file batch operation. Returns 410 once the vector store has expired.
|
|
53
53
|
*/
|
|
54
54
|
export function useLlmVectorStoresCancelFileBatchMutation(
|
|
55
55
|
options?: MutationHookOptions<
|
|
@@ -48,7 +48,7 @@ export type LlmVectorStoresCreateFileMutationError =
|
|
|
48
48
|
* Add a file to a vector store
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* Adds a file to a vector store for semantic search indexing.
|
|
51
|
+
* Adds a file to a vector store for semantic search indexing. Returns 410 once the vector store has expired.
|
|
52
52
|
*/
|
|
53
53
|
export function useLlmVectorStoresCreateFileMutation(
|
|
54
54
|
options?: MutationHookOptions<
|
|
@@ -49,7 +49,7 @@ export type LlmVectorStoresCreateFileBatchMutationError =
|
|
|
49
49
|
* Batch add multiple files to vector store
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Adds multiple files to a vector store in a single batch operation.
|
|
52
|
+
* Adds multiple files to a vector store in a single batch operation. Returns 410 once the vector store has expired.
|
|
53
53
|
*/
|
|
54
54
|
export function useLlmVectorStoresCreateFileBatchMutation(
|
|
55
55
|
options?: MutationHookOptions<
|
|
@@ -49,7 +49,7 @@ export type LlmVectorStoresDeleteFileMutationError =
|
|
|
49
49
|
* Remove file from vector store
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Removes a file from a vector store and deletes its associated embeddings. If the file is no longer attached but the vector store still holds embeddings for it (for example, left behind by an earlier file deletion), those embeddings are deleted and the request succeeds, provided the file was deleted or you can read it; otherwise, and when there is nothing to remove, returns 404. Returns 409 if the file keeps being added back to the vector store while it is being removed; retrying completes the removal.
|
|
52
|
+
* Removes a file from a vector store and deletes its associated embeddings. If the file is no longer attached but the vector store still holds embeddings for it (for example, left behind by an earlier file deletion), those embeddings are deleted and the request succeeds, provided the file was deleted or you can read it; otherwise, and when there is nothing to remove, returns 404. Returns 409 if the file keeps being added back to the vector store while it is being removed; retrying completes the removal. Returns 410 once the vector store has expired.
|
|
53
53
|
*/
|
|
54
54
|
export function useLlmVectorStoresDeleteFileMutation(
|
|
55
55
|
options?: MutationHookOptions<
|