Skip to content

Instantly share code, notes, and snippets.

@xinzhel
Last active November 26, 2023 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xinzhel/2637a45e6ced54b9e6ffb18dd8b99ac6 to your computer and use it in GitHub Desktop.
Save xinzhel/2637a45e6ced54b9e6ffb18dd8b99ac6 to your computer and use it in GitHub Desktop.
test_openaischema.json
{
"name": "MultiSearch",
"description": "correct segmentation of `Search` tasks",
"parameters": {
"properties": {
"tasks": {
"items": {
"$ref": "#/$defs/Search"
},
"type": "array"
}
},
"required": [
"tasks"
],
"type": "object",
"$defs": {
"Search": {
"properties": {
"query": {
"description": "The search query.",
"type": "string"
},
"source": {
"$ref": "#/$defs/Source"
}
},
"required": [
"query",
"source"
],
"type": "object"
},
"Source": {
"enum": [
"VIDEO",
"TRANSCRIPT",
"DOCUMENT"
],
"type": "string"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment