feat(compose): support AI models in Compose specification

This commit is contained in:
EgerDev
2026-09-10 20:28:28 -07:00
parent 9fa98de9c1
commit 29cdc815db
4 changed files with 257 additions and 0 deletions
+36
View File
@@ -497,6 +497,7 @@ export interface ComposeSpecification {
*/
include?: DefinitionsInclude[];
services?: PropertiesServices;
models?: PropertiesModels;
networks?: PropertiesNetworks;
volumes?: PropertiesVolumes;
secrets?: PropertiesSecrets;
@@ -648,6 +649,23 @@ export interface DefinitionsService {
mem_swappiness?: number;
memswap_limit?: number | string;
network_mode?: string;
models?:
| ListOfStrings
| {
/**
* This interface was referenced by `undefined`'s JSON-Schema definition
* via the `patternProperty` "^[a-zA-Z0-9._-]+$".
*/
[k: string]: {
endpoint_var?: string;
model_var?: string;
/**
* This interface was referenced by `undefined`'s JSON-Schema definition
* via the `patternProperty` "^x-".
*/
[k: string]: unknown;
} | null;
};
networks?:
| ListOfStrings
| {
@@ -877,3 +895,21 @@ export interface DefinitionsConfig {
*/
[k: string]: unknown;
}
export interface PropertiesModels {
[k: string]: DefinitionsModel;
}
/**
* This interface was referenced by `PropertiesModels`'s JSON-Schema definition
* via the `patternProperty` "^[a-zA-Z0-9._-]+$".
*/
export interface DefinitionsModel {
name?: string;
model: string;
context_size?: number;
runtime_flags?: string[];
/**
* This interface was referenced by `DefinitionsModel`'s JSON-Schema definition
* via the `patternProperty` "^x-".
*/
[k: string]: unknown;
}