update config schema files

This commit is contained in:
Nate Sesti 2024-07-20 10:39:42 -07:00
parent 38d98e4801
commit 27772b9f2b
3 changed files with 145 additions and 4 deletions

View file

@ -1395,6 +1395,46 @@
}
},
"allOf": [
{
"if": {
"properties": {
"name": {
"enum": ["docs"]
}
}
},
"then": {
"properties": {
"params": {
"properties": {
"sites": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"startUrl": {
"type": "string"
},
"rootUrl": {
"type": "string"
},
"maxDepth": {
"type": "integer"
}
},
"required": ["title", "startUrl"]
}
}
},
"required": ["sites"]
}
},
"required": ["params"]
}
},
{
"if": {
"properties": {
@ -1955,7 +1995,13 @@
"type": "object",
"properties": {
"name": {
"enum": ["cohere", "voyage", "llm", "free-trial", "huggingface-tei"]
"enum": [
"cohere",
"voyage",
"llm",
"free-trial",
"huggingface-tei"
]
},
"params": {
"type": "object"
@ -2070,7 +2116,7 @@
"default": false
},
"truncation_direction": {
"enum": ["Right","Left"],
"enum": ["Right", "Left"],
"markdownDescription": "Wether to truncate sequences from the `left` or `right`.",
"default": "Right"
}

View file

@ -1395,6 +1395,46 @@
}
},
"allOf": [
{
"if": {
"properties": {
"name": {
"enum": ["docs"]
}
}
},
"then": {
"properties": {
"params": {
"properties": {
"sites": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"startUrl": {
"type": "string"
},
"rootUrl": {
"type": "string"
},
"maxDepth": {
"type": "integer"
}
},
"required": ["title", "startUrl"]
}
}
},
"required": ["sites"]
}
},
"required": ["params"]
}
},
{
"if": {
"properties": {
@ -1955,7 +1995,13 @@
"type": "object",
"properties": {
"name": {
"enum": ["cohere", "voyage", "llm", "free-trial", "huggingface-tei"]
"enum": [
"cohere",
"voyage",
"llm",
"free-trial",
"huggingface-tei"
]
},
"params": {
"type": "object"
@ -2070,7 +2116,7 @@
"default": false
},
"truncation_direction": {
"enum": ["Right","Left"],
"enum": ["Right", "Left"],
"markdownDescription": "Wether to truncate sequences from the `left` or `right`.",
"default": "Right"
}

View file

@ -1541,6 +1541,55 @@
}
},
"allOf": [
{
"if": {
"properties": {
"name": {
"enum": [
"docs"
]
}
}
},
"then": {
"properties": {
"params": {
"properties": {
"sites": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"startUrl": {
"type": "string"
},
"rootUrl": {
"type": "string"
},
"maxDepth": {
"type": "integer"
}
},
"required": [
"title",
"startUrl"
]
}
}
},
"required": [
"sites"
]
}
},
"required": [
"params"
]
}
},
{
"if": {
"properties": {