config.schema.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {
  2. "type": "object",
  3. "properties": {
  4. "provider": {
  5. "type": "object",
  6. "additionalProperties": {
  7. "type": "object",
  8. "properties": {
  9. "name": {
  10. "type": "string"
  11. },
  12. "env": {
  13. "type": "array",
  14. "items": {
  15. "type": "string"
  16. }
  17. },
  18. "id": {
  19. "type": "string"
  20. },
  21. "models": {
  22. "type": "object",
  23. "additionalProperties": {
  24. "type": "object",
  25. "properties": {
  26. "name": {
  27. "type": "string"
  28. },
  29. "attachment": {
  30. "type": "boolean"
  31. },
  32. "reasoning": {
  33. "type": "boolean"
  34. },
  35. "temperature": {
  36. "type": "boolean"
  37. },
  38. "cost": {
  39. "type": "object",
  40. "properties": {
  41. "input": {
  42. "type": "number"
  43. },
  44. "output": {
  45. "type": "number"
  46. },
  47. "inputCached": {
  48. "type": "number"
  49. },
  50. "outputCached": {
  51. "type": "number"
  52. }
  53. },
  54. "required": [
  55. "input",
  56. "output",
  57. "inputCached",
  58. "outputCached"
  59. ],
  60. "additionalProperties": false
  61. },
  62. "limit": {
  63. "type": "object",
  64. "properties": {
  65. "context": {
  66. "type": "number"
  67. },
  68. "output": {
  69. "type": "number"
  70. }
  71. },
  72. "required": ["context", "output"],
  73. "additionalProperties": false
  74. },
  75. "id": {
  76. "type": "string"
  77. }
  78. },
  79. "additionalProperties": false
  80. }
  81. },
  82. "options": {
  83. "type": "object",
  84. "additionalProperties": {}
  85. }
  86. },
  87. "required": ["models"],
  88. "additionalProperties": false
  89. }
  90. },
  91. "mcp": {
  92. "type": "object",
  93. "additionalProperties": {
  94. "anyOf": [
  95. {
  96. "type": "object",
  97. "properties": {
  98. "type": {
  99. "type": "string",
  100. "const": "local"
  101. },
  102. "command": {
  103. "type": "array",
  104. "items": {
  105. "type": "string"
  106. }
  107. },
  108. "environment": {
  109. "type": "object",
  110. "additionalProperties": {
  111. "type": "string"
  112. }
  113. }
  114. },
  115. "required": ["type", "command"],
  116. "additionalProperties": false
  117. },
  118. {
  119. "type": "object",
  120. "properties": {
  121. "type": {
  122. "type": "string",
  123. "const": "remote"
  124. },
  125. "url": {
  126. "type": "string"
  127. }
  128. },
  129. "required": ["type", "url"],
  130. "additionalProperties": false
  131. }
  132. ]
  133. }
  134. }
  135. },
  136. "additionalProperties": false,
  137. "$schema": "http://json-schema.org/draft-07/schema#"
  138. }