|
36 | 36 | "description": "The services that will be used by your application." |
37 | 37 | }, |
38 | 38 |
|
| 39 | + "models": { |
| 40 | + "type": "object", |
| 41 | + "patternProperties": { |
| 42 | + "^[a-zA-Z0-9._-]+$": { |
| 43 | + "$ref": "#/definitions/model" |
| 44 | + } |
| 45 | + }, |
| 46 | + "description": "Language models that will be used by your application." |
| 47 | + }, |
| 48 | + |
| 49 | + |
39 | 50 | "networks": { |
40 | 51 | "type": "object", |
41 | 52 | "patternProperties": { |
|
392 | 403 | "provider": { |
393 | 404 | "type": "object", |
394 | 405 | "description": "Specify a service which will not be manage by Compose directly, and delegate its management to an external provider.", |
| 406 | + "required": ["type"], |
395 | 407 | "properties": { |
396 | 408 | "type": { |
397 | 409 | "type": "string", |
|
401 | 413 | "type": "object", |
402 | 414 | "description": "Provider-specific options.", |
403 | 415 | "patternProperties": { |
404 | | - "^.+$": {"type": ["string", "number", "null"]} |
| 416 | + "^.+$": {"oneOf": [ |
| 417 | + { "type": ["string", "number", "boolean"] }, |
| 418 | + { "type": "array", "items": {"type": ["string", "number", "boolean"]}} |
| 419 | + ]} |
405 | 420 | } |
406 | 421 | } |
407 | 422 | }, |
|
507 | 522 | "type": "string", |
508 | 523 | "description": "Network mode. Values can be 'bridge', 'host', 'none', 'service:[service name]', or 'container:[container name]'." |
509 | 524 | }, |
| 525 | + "models": { |
| 526 | + "oneOf": [ |
| 527 | + {"$ref": "#/definitions/list_of_strings"}, |
| 528 | + {"type": "object", |
| 529 | + "patternProperties": { |
| 530 | + "^[a-zA-Z0-9._-]+$": { |
| 531 | + "type": "object", |
| 532 | + "properties": { |
| 533 | + "endpoint_var": { |
| 534 | + "type": "string", |
| 535 | + "description": "Environment variable set to AI model endpoint." |
| 536 | + } |
| 537 | + }, |
| 538 | + "additionalProperties": false, |
| 539 | + "patternProperties": {"^x-": {}} |
| 540 | + } |
| 541 | + } |
| 542 | + } |
| 543 | + ], |
| 544 | + "description": "AI Models to use, referencing entries under the top-level models key." |
| 545 | + }, |
510 | 546 | "networks": { |
511 | 547 | "oneOf": [ |
512 | 548 | {"$ref": "#/definitions/list_of_strings"}, |
|
728 | 764 | "$ref": "#/definitions/ulimits", |
729 | 765 | "description": "Override the default ulimits for a container." |
730 | 766 | }, |
| 767 | + "use_api_socket": { |
| 768 | + "type": "boolean", |
| 769 | + "description": "Bind mount Docker API socket and required auth." |
| 770 | + }, |
731 | 771 | "user": { |
732 | 772 | "type": "string", |
733 | 773 | "description": "Username or UID to run the container process as." |
|
1522 | 1562 | "patternProperties": {"^x-": {}} |
1523 | 1563 | }, |
1524 | 1564 |
|
| 1565 | + "model": { |
| 1566 | + "type": "object", |
| 1567 | + "description": "Language Model for the Compose application.", |
| 1568 | + "properties": { |
| 1569 | + "name": { |
| 1570 | + "type": "string", |
| 1571 | + "description": "Custom name for this model." |
| 1572 | + }, |
| 1573 | + "model": { |
| 1574 | + "type": "string", |
| 1575 | + "description": "Language Model to run." |
| 1576 | + }, |
| 1577 | + "context_size": { |
| 1578 | + "type": "integer" |
| 1579 | + }, |
| 1580 | + "runtime_flags": { |
| 1581 | + "type": "array", |
| 1582 | + "items": {"type": "string"}, |
| 1583 | + "description": "Raw runtime flags to pass to the inference engine." |
| 1584 | + } |
| 1585 | + }, |
| 1586 | + "required": ["model"], |
| 1587 | + "additionalProperties": false, |
| 1588 | + "patternProperties": {"^x-": {}} |
| 1589 | + }, |
| 1590 | + |
1525 | 1591 | "command": { |
1526 | 1592 | "oneOf": [ |
1527 | 1593 | { |
|
0 commit comments