|
1787 | 1787 | }, |
1788 | 1788 | "type": "array", |
1789 | 1789 | "title": "Byok Rag" |
| 1790 | + }, |
| 1791 | + "quota_handlers": { |
| 1792 | + "$ref": "#/components/schemas/QuotaHandlersConfiguration" |
1790 | 1793 | } |
1791 | 1794 | }, |
1792 | 1795 | "additionalProperties": false, |
|
3590 | 3593 | } |
3591 | 3594 | ] |
3592 | 3595 | }, |
| 3596 | + "QuotaHandlersConfiguration": { |
| 3597 | + "properties": { |
| 3598 | + "sqlite": { |
| 3599 | + "anyOf": [ |
| 3600 | + { |
| 3601 | + "$ref": "#/components/schemas/SQLiteDatabaseConfiguration" |
| 3602 | + }, |
| 3603 | + { |
| 3604 | + "type": "null" |
| 3605 | + } |
| 3606 | + ] |
| 3607 | + }, |
| 3608 | + "postgres": { |
| 3609 | + "anyOf": [ |
| 3610 | + { |
| 3611 | + "$ref": "#/components/schemas/PostgreSQLDatabaseConfiguration" |
| 3612 | + }, |
| 3613 | + { |
| 3614 | + "type": "null" |
| 3615 | + } |
| 3616 | + ] |
| 3617 | + }, |
| 3618 | + "limiters": { |
| 3619 | + "items": { |
| 3620 | + "$ref": "#/components/schemas/QuotaLimiterConfiguration" |
| 3621 | + }, |
| 3622 | + "type": "array", |
| 3623 | + "title": "Limiters" |
| 3624 | + }, |
| 3625 | + "scheduler": { |
| 3626 | + "$ref": "#/components/schemas/QuotaSchedulerConfiguration" |
| 3627 | + }, |
| 3628 | + "enable_token_history": { |
| 3629 | + "type": "boolean", |
| 3630 | + "title": "Enable Token History", |
| 3631 | + "default": false |
| 3632 | + } |
| 3633 | + }, |
| 3634 | + "additionalProperties": false, |
| 3635 | + "type": "object", |
| 3636 | + "title": "QuotaHandlersConfiguration", |
| 3637 | + "description": "Quota limiter configuration." |
| 3638 | + }, |
| 3639 | + "QuotaLimiterConfiguration": { |
| 3640 | + "properties": { |
| 3641 | + "type": { |
| 3642 | + "type": "string", |
| 3643 | + "enum": [ |
| 3644 | + "user_limiter", |
| 3645 | + "cluster_limiter" |
| 3646 | + ], |
| 3647 | + "title": "Type" |
| 3648 | + }, |
| 3649 | + "name": { |
| 3650 | + "type": "string", |
| 3651 | + "title": "Name" |
| 3652 | + }, |
| 3653 | + "initial_quota": { |
| 3654 | + "type": "integer", |
| 3655 | + "minimum": 0.0, |
| 3656 | + "title": "Initial Quota" |
| 3657 | + }, |
| 3658 | + "quota_increase": { |
| 3659 | + "type": "integer", |
| 3660 | + "minimum": 0.0, |
| 3661 | + "title": "Quota Increase" |
| 3662 | + }, |
| 3663 | + "period": { |
| 3664 | + "type": "string", |
| 3665 | + "title": "Period" |
| 3666 | + } |
| 3667 | + }, |
| 3668 | + "additionalProperties": false, |
| 3669 | + "type": "object", |
| 3670 | + "required": [ |
| 3671 | + "type", |
| 3672 | + "name", |
| 3673 | + "initial_quota", |
| 3674 | + "quota_increase", |
| 3675 | + "period" |
| 3676 | + ], |
| 3677 | + "title": "QuotaLimiterConfiguration", |
| 3678 | + "description": "Configuration for one quota limiter." |
| 3679 | + }, |
| 3680 | + "QuotaSchedulerConfiguration": { |
| 3681 | + "properties": { |
| 3682 | + "period": { |
| 3683 | + "type": "integer", |
| 3684 | + "exclusiveMinimum": 0.0, |
| 3685 | + "title": "Period", |
| 3686 | + "default": 1 |
| 3687 | + } |
| 3688 | + }, |
| 3689 | + "type": "object", |
| 3690 | + "title": "QuotaSchedulerConfiguration", |
| 3691 | + "description": "Quota scheduler configuration." |
| 3692 | + }, |
3593 | 3693 | "RAGChunk": { |
3594 | 3694 | "properties": { |
3595 | 3695 | "content": { |
|
3691 | 3791 | "description": "URL of the referenced document" |
3692 | 3792 | }, |
3693 | 3793 | "doc_title": { |
3694 | | - "type": "string", |
| 3794 | + "anyOf": [ |
| 3795 | + { |
| 3796 | + "type": "string" |
| 3797 | + }, |
| 3798 | + { |
| 3799 | + "type": "null" |
| 3800 | + } |
| 3801 | + ], |
3695 | 3802 | "title": "Doc Title", |
3696 | 3803 | "description": "Title of the referenced document" |
3697 | 3804 | } |
3698 | 3805 | }, |
3699 | 3806 | "type": "object", |
3700 | | - "required": [ |
3701 | | - "doc_title" |
3702 | | - ], |
3703 | 3807 | "title": "ReferencedDocument", |
3704 | 3808 | "description": "Model representing a document referenced in generating a response.\n\nAttributes:\n doc_url: Url to the referenced doc.\n doc_title: Title of the referenced doc." |
3705 | 3809 | }, |
|
0 commit comments