Download a1111-microsoftexcel-tagcomplete/javascript/_result.js from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F3/a1111-microsoftexcel-tagcomplete/javascript/_result.js
- Command line
-
hf download hf://toto10/extensions@refs/pr/3/a1111-microsoftexcel-tagcomplete/javascript/_result.js
-
curl -L -o _result.js https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F3/a1111-microsoftexcel-tagcomplete/javascript/_result.js
698 Bytes
| // Result data type for cleaner use of optional completion result properties | |
| // Type enum | |
| const ResultType = Object.freeze({ | |
| "tag": 1, | |
| "extra": 2, | |
| "embedding": 3, | |
| "wildcardTag": 4, | |
| "wildcardFile": 5, | |
| "yamlWildcard": 6, | |
| "hypernetwork": 7, | |
| "lora": 8, | |
| "lyco": 9 | |
| }); | |
| // Class to hold result data and annotations to make it clearer to use | |
| class AutocompleteResult { | |
| // Main properties | |
| text = ""; | |
| type = ResultType.tag; | |
| // Additional info, only used in some cases | |
| category = null; | |
| count = null; | |
| aliases = null; | |
| meta = null; | |
| // Constructor | |
| constructor(text, type) { | |
| this.text = text; | |
| this.type = type; | |
| } | |
| } |