@smythos/sre 1.5.46 → 1.5.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/CHANGELOG +98 -90
  2. package/LICENSE +18 -18
  3. package/README.md +135 -135
  4. package/dist/bundle-analysis-lazy.html +4949 -0
  5. package/dist/bundle-analysis.html +4949 -0
  6. package/dist/index.js +3 -3
  7. package/dist/index.js.map +1 -1
  8. package/dist/types/Components/MCPClient.class.d.ts +1 -0
  9. package/dist/types/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.d.ts +1 -6
  10. package/dist/types/utils/package-manager.utils.d.ts +26 -0
  11. package/package.json +1 -1
  12. package/src/Components/APICall/APICall.class.ts +156 -156
  13. package/src/Components/APICall/AccessTokenManager.ts +130 -130
  14. package/src/Components/APICall/ArrayBufferResponse.helper.ts +58 -58
  15. package/src/Components/APICall/OAuth.helper.ts +294 -294
  16. package/src/Components/APICall/mimeTypeCategories.ts +46 -46
  17. package/src/Components/APICall/parseData.ts +167 -167
  18. package/src/Components/APICall/parseHeaders.ts +41 -41
  19. package/src/Components/APICall/parseProxy.ts +68 -68
  20. package/src/Components/APICall/parseUrl.ts +91 -91
  21. package/src/Components/APIEndpoint.class.ts +234 -234
  22. package/src/Components/APIOutput.class.ts +58 -58
  23. package/src/Components/AgentPlugin.class.ts +102 -102
  24. package/src/Components/Async.class.ts +155 -155
  25. package/src/Components/Await.class.ts +90 -90
  26. package/src/Components/Classifier.class.ts +158 -158
  27. package/src/Components/Component.class.ts +132 -132
  28. package/src/Components/ComponentHost.class.ts +38 -38
  29. package/src/Components/DataSourceCleaner.class.ts +92 -92
  30. package/src/Components/DataSourceIndexer.class.ts +181 -181
  31. package/src/Components/DataSourceLookup.class.ts +161 -161
  32. package/src/Components/ECMASandbox.class.ts +71 -71
  33. package/src/Components/FEncDec.class.ts +29 -29
  34. package/src/Components/FHash.class.ts +33 -33
  35. package/src/Components/FSign.class.ts +80 -80
  36. package/src/Components/FSleep.class.ts +25 -25
  37. package/src/Components/FTimestamp.class.ts +25 -25
  38. package/src/Components/FileStore.class.ts +78 -78
  39. package/src/Components/ForEach.class.ts +97 -97
  40. package/src/Components/GPTPlugin.class.ts +70 -70
  41. package/src/Components/GenAILLM.class.ts +586 -586
  42. package/src/Components/HuggingFace.class.ts +314 -314
  43. package/src/Components/Image/imageSettings.config.ts +70 -70
  44. package/src/Components/ImageGenerator.class.ts +502 -502
  45. package/src/Components/JSONFilter.class.ts +54 -54
  46. package/src/Components/LLMAssistant.class.ts +213 -213
  47. package/src/Components/LogicAND.class.ts +28 -28
  48. package/src/Components/LogicAtLeast.class.ts +85 -85
  49. package/src/Components/LogicAtMost.class.ts +86 -86
  50. package/src/Components/LogicOR.class.ts +29 -29
  51. package/src/Components/LogicXOR.class.ts +34 -34
  52. package/src/Components/MCPClient.class.ts +138 -112
  53. package/src/Components/MemoryDeleteKeyVal.class.ts +70 -70
  54. package/src/Components/MemoryReadKeyVal.class.ts +66 -66
  55. package/src/Components/MemoryWriteKeyVal.class.ts +62 -62
  56. package/src/Components/MemoryWriteObject.class.ts +97 -97
  57. package/src/Components/MultimodalLLM.class.ts +128 -128
  58. package/src/Components/OpenAPI.class.ts +72 -72
  59. package/src/Components/PromptGenerator.class.ts +122 -122
  60. package/src/Components/ScrapflyWebScrape.class.ts +159 -159
  61. package/src/Components/ServerlessCode.class.ts +123 -123
  62. package/src/Components/TavilyWebSearch.class.ts +98 -98
  63. package/src/Components/VisionLLM.class.ts +104 -104
  64. package/src/Components/ZapierAction.class.ts +127 -127
  65. package/src/Components/index.ts +97 -97
  66. package/src/Core/AgentProcess.helper.ts +240 -240
  67. package/src/Core/Connector.class.ts +123 -123
  68. package/src/Core/ConnectorsService.ts +197 -197
  69. package/src/Core/DummyConnector.ts +49 -49
  70. package/src/Core/HookService.ts +105 -105
  71. package/src/Core/SmythRuntime.class.ts +235 -235
  72. package/src/Core/SystemEvents.ts +16 -16
  73. package/src/Core/boot.ts +56 -56
  74. package/src/config.ts +15 -15
  75. package/src/constants.ts +126 -126
  76. package/src/data/hugging-face.params.json +579 -579
  77. package/src/helpers/AWSLambdaCode.helper.ts +587 -587
  78. package/src/helpers/BinaryInput.helper.ts +331 -331
  79. package/src/helpers/Conversation.helper.ts +1119 -1119
  80. package/src/helpers/ECMASandbox.helper.ts +54 -54
  81. package/src/helpers/JsonContent.helper.ts +97 -97
  82. package/src/helpers/LocalCache.helper.ts +97 -97
  83. package/src/helpers/Log.helper.ts +274 -274
  84. package/src/helpers/OpenApiParser.helper.ts +150 -150
  85. package/src/helpers/S3Cache.helper.ts +147 -147
  86. package/src/helpers/SmythURI.helper.ts +5 -5
  87. package/src/helpers/Sysconfig.helper.ts +77 -77
  88. package/src/helpers/TemplateString.helper.ts +243 -243
  89. package/src/helpers/TypeChecker.helper.ts +329 -329
  90. package/src/index.ts +3 -3
  91. package/src/index.ts.bak +3 -3
  92. package/src/subsystems/AgentManager/Agent.class.ts +1114 -1114
  93. package/src/subsystems/AgentManager/Agent.helper.ts +3 -3
  94. package/src/subsystems/AgentManager/AgentData.service/AgentDataConnector.ts +230 -230
  95. package/src/subsystems/AgentManager/AgentData.service/connectors/CLIAgentDataConnector.class.ts +66 -66
  96. package/src/subsystems/AgentManager/AgentData.service/connectors/LocalAgentDataConnector.class.ts +142 -142
  97. package/src/subsystems/AgentManager/AgentData.service/connectors/NullAgentData.class.ts +39 -39
  98. package/src/subsystems/AgentManager/AgentData.service/index.ts +18 -18
  99. package/src/subsystems/AgentManager/AgentLogger.class.ts +297 -297
  100. package/src/subsystems/AgentManager/AgentRequest.class.ts +51 -51
  101. package/src/subsystems/AgentManager/AgentRuntime.class.ts +559 -559
  102. package/src/subsystems/AgentManager/AgentSSE.class.ts +101 -101
  103. package/src/subsystems/AgentManager/AgentSettings.class.ts +52 -52
  104. package/src/subsystems/AgentManager/Component.service/ComponentConnector.ts +32 -32
  105. package/src/subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class.ts +60 -60
  106. package/src/subsystems/AgentManager/Component.service/index.ts +11 -11
  107. package/src/subsystems/AgentManager/EmbodimentSettings.class.ts +47 -47
  108. package/src/subsystems/AgentManager/ForkedAgent.class.ts +154 -154
  109. package/src/subsystems/AgentManager/OSResourceMonitor.ts +77 -77
  110. package/src/subsystems/ComputeManager/Code.service/CodeConnector.ts +98 -98
  111. package/src/subsystems/ComputeManager/Code.service/connectors/AWSLambdaCode.class.ts +172 -172
  112. package/src/subsystems/ComputeManager/Code.service/connectors/ECMASandbox.class.ts +131 -131
  113. package/src/subsystems/ComputeManager/Code.service/index.ts +13 -13
  114. package/src/subsystems/IO/CLI.service/CLIConnector.ts +47 -47
  115. package/src/subsystems/IO/CLI.service/index.ts +9 -9
  116. package/src/subsystems/IO/Log.service/LogConnector.ts +32 -32
  117. package/src/subsystems/IO/Log.service/connectors/ConsoleLog.class.ts +28 -28
  118. package/src/subsystems/IO/Log.service/index.ts +13 -13
  119. package/src/subsystems/IO/NKV.service/NKVConnector.ts +43 -43
  120. package/src/subsystems/IO/NKV.service/connectors/NKVLocalStorage.class.ts +234 -234
  121. package/src/subsystems/IO/NKV.service/connectors/NKVRAM.class.ts +204 -204
  122. package/src/subsystems/IO/NKV.service/connectors/NKVRedis.class.ts +182 -182
  123. package/src/subsystems/IO/NKV.service/index.ts +14 -14
  124. package/src/subsystems/IO/Router.service/RouterConnector.ts +21 -21
  125. package/src/subsystems/IO/Router.service/connectors/ExpressRouter.class.ts +48 -48
  126. package/src/subsystems/IO/Router.service/connectors/NullRouter.class.ts +40 -40
  127. package/src/subsystems/IO/Router.service/index.ts +11 -11
  128. package/src/subsystems/IO/Storage.service/SmythFS.class.ts +489 -489
  129. package/src/subsystems/IO/Storage.service/StorageConnector.ts +66 -66
  130. package/src/subsystems/IO/Storage.service/connectors/LocalStorage.class.ts +327 -327
  131. package/src/subsystems/IO/Storage.service/connectors/S3Storage.class.ts +482 -482
  132. package/src/subsystems/IO/Storage.service/index.ts +13 -13
  133. package/src/subsystems/IO/VectorDB.service/VectorDBConnector.ts +108 -108
  134. package/src/subsystems/IO/VectorDB.service/connectors/MilvusVectorDB.class.ts +454 -454
  135. package/src/subsystems/IO/VectorDB.service/connectors/PineconeVectorDB.class.ts +384 -384
  136. package/src/subsystems/IO/VectorDB.service/connectors/RAMVecrtorDB.class.ts +421 -421
  137. package/src/subsystems/IO/VectorDB.service/embed/BaseEmbedding.ts +107 -107
  138. package/src/subsystems/IO/VectorDB.service/embed/OpenAIEmbedding.ts +109 -109
  139. package/src/subsystems/IO/VectorDB.service/embed/index.ts +21 -21
  140. package/src/subsystems/IO/VectorDB.service/index.ts +14 -14
  141. package/src/subsystems/LLMManager/LLM.helper.ts +251 -251
  142. package/src/subsystems/LLMManager/LLM.inference.ts +339 -339
  143. package/src/subsystems/LLMManager/LLM.service/LLMConnector.ts +489 -489
  144. package/src/subsystems/LLMManager/LLM.service/LLMCredentials.helper.ts +171 -171
  145. package/src/subsystems/LLMManager/LLM.service/connectors/Anthropic.class.ts +659 -659
  146. package/src/subsystems/LLMManager/LLM.service/connectors/Bedrock.class.ts +400 -400
  147. package/src/subsystems/LLMManager/LLM.service/connectors/Echo.class.ts +77 -77
  148. package/src/subsystems/LLMManager/LLM.service/connectors/GoogleAI.class.ts +757 -757
  149. package/src/subsystems/LLMManager/LLM.service/connectors/Groq.class.ts +304 -304
  150. package/src/subsystems/LLMManager/LLM.service/connectors/Perplexity.class.ts +250 -250
  151. package/src/subsystems/LLMManager/LLM.service/connectors/VertexAI.class.ts +423 -423
  152. package/src/subsystems/LLMManager/LLM.service/connectors/openai/OpenAIConnector.class.ts +488 -488
  153. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ChatCompletionsApiInterface.ts +524 -524
  154. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterface.ts +100 -100
  155. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/OpenAIApiInterfaceFactory.ts +81 -81
  156. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/ResponsesApiInterface.ts +1145 -1145
  157. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/constants.ts +13 -13
  158. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/index.ts +4 -4
  159. package/src/subsystems/LLMManager/LLM.service/connectors/openai/apiInterfaces/utils.ts +11 -11
  160. package/src/subsystems/LLMManager/LLM.service/connectors/openai/types.ts +32 -32
  161. package/src/subsystems/LLMManager/LLM.service/connectors/xAI.class.ts +471 -471
  162. package/src/subsystems/LLMManager/LLM.service/index.ts +44 -44
  163. package/src/subsystems/LLMManager/ModelsProvider.service/ModelsProviderConnector.ts +300 -300
  164. package/src/subsystems/LLMManager/ModelsProvider.service/connectors/JSONModelsProvider.class.ts +252 -252
  165. package/src/subsystems/LLMManager/ModelsProvider.service/index.ts +11 -11
  166. package/src/subsystems/LLMManager/custom-models.ts +854 -854
  167. package/src/subsystems/LLMManager/models.ts +2540 -2540
  168. package/src/subsystems/LLMManager/paramMappings.ts +69 -69
  169. package/src/subsystems/MemoryManager/Cache.service/CacheConnector.ts +86 -86
  170. package/src/subsystems/MemoryManager/Cache.service/connectors/LocalStorageCache.class.ts +297 -297
  171. package/src/subsystems/MemoryManager/Cache.service/connectors/RAMCache.class.ts +201 -201
  172. package/src/subsystems/MemoryManager/Cache.service/connectors/RedisCache.class.ts +252 -252
  173. package/src/subsystems/MemoryManager/Cache.service/connectors/S3Cache.class.ts +373 -373
  174. package/src/subsystems/MemoryManager/Cache.service/index.ts +15 -15
  175. package/src/subsystems/MemoryManager/LLMCache.ts +72 -72
  176. package/src/subsystems/MemoryManager/LLMContext.ts +124 -124
  177. package/src/subsystems/MemoryManager/LLMMemory.service/LLMMemoryConnector.ts +26 -26
  178. package/src/subsystems/MemoryManager/RuntimeContext.ts +266 -266
  179. package/src/subsystems/Security/AccessControl/ACL.class.ts +208 -208
  180. package/src/subsystems/Security/AccessControl/AccessCandidate.class.ts +82 -82
  181. package/src/subsystems/Security/AccessControl/AccessRequest.class.ts +52 -52
  182. package/src/subsystems/Security/Account.service/AccountConnector.ts +44 -44
  183. package/src/subsystems/Security/Account.service/connectors/AWSAccount.class.ts +76 -76
  184. package/src/subsystems/Security/Account.service/connectors/DummyAccount.class.ts +130 -130
  185. package/src/subsystems/Security/Account.service/connectors/JSONFileAccount.class.ts +159 -159
  186. package/src/subsystems/Security/Account.service/index.ts +14 -14
  187. package/src/subsystems/Security/Credentials.helper.ts +62 -62
  188. package/src/subsystems/Security/ManagedVault.service/ManagedVaultConnector.ts +38 -38
  189. package/src/subsystems/Security/ManagedVault.service/connectors/NullManagedVault.class.ts +53 -53
  190. package/src/subsystems/Security/ManagedVault.service/connectors/SecretManagerManagedVault.ts +154 -154
  191. package/src/subsystems/Security/ManagedVault.service/index.ts +12 -12
  192. package/src/subsystems/Security/SecureConnector.class.ts +110 -110
  193. package/src/subsystems/Security/Vault.service/Vault.helper.ts +30 -30
  194. package/src/subsystems/Security/Vault.service/VaultConnector.ts +29 -29
  195. package/src/subsystems/Security/Vault.service/connectors/HashicorpVault.class.ts +46 -46
  196. package/src/subsystems/Security/Vault.service/connectors/JSONFileVault.class.ts +221 -221
  197. package/src/subsystems/Security/Vault.service/connectors/NullVault.class.ts +54 -54
  198. package/src/subsystems/Security/Vault.service/connectors/SecretsManager.class.ts +140 -140
  199. package/src/subsystems/Security/Vault.service/index.ts +12 -12
  200. package/src/types/ACL.types.ts +104 -104
  201. package/src/types/AWS.types.ts +10 -10
  202. package/src/types/Agent.types.ts +61 -61
  203. package/src/types/AgentLogger.types.ts +17 -17
  204. package/src/types/Cache.types.ts +1 -1
  205. package/src/types/Common.types.ts +2 -2
  206. package/src/types/LLM.types.ts +496 -496
  207. package/src/types/Redis.types.ts +8 -8
  208. package/src/types/SRE.types.ts +64 -64
  209. package/src/types/Security.types.ts +14 -14
  210. package/src/types/Storage.types.ts +5 -5
  211. package/src/types/VectorDB.types.ts +86 -86
  212. package/src/utils/base64.utils.ts +275 -275
  213. package/src/utils/cli.utils.ts +68 -68
  214. package/src/utils/data.utils.ts +322 -322
  215. package/src/utils/date-time.utils.ts +22 -22
  216. package/src/utils/general.utils.ts +238 -238
  217. package/src/utils/index.ts +12 -12
  218. package/src/utils/lazy-client.ts +261 -261
  219. package/src/utils/numbers.utils.ts +13 -13
  220. package/src/utils/oauth.utils.ts +35 -35
  221. package/src/utils/string.utils.ts +414 -414
  222. package/src/utils/url.utils.ts +19 -19
  223. package/src/utils/validation.utils.ts +74 -74
  224. package/dist/types/subsystems/LLMManager/ModelsProvider.service/connectors/SmythModelsProvider.class.d.ts +0 -39
@@ -1,580 +1,580 @@
1
- {
2
- "text-classification": {
3
- "inputs": {
4
- "Text": {
5
- "type": "string",
6
- "desc": "(required) a string to be classified",
7
- "request_parameter_name": "inputs",
8
- "request_parameter_type": "string"
9
- }
10
- },
11
- "formatRequest": "inputs: \"{{text}}\""
12
- },
13
- "token-classification": {
14
- "inputs": {
15
- "Text": {
16
- "type": "string",
17
- "desc": "(required) a string to be classified",
18
- "request_parameter_name": "inputs",
19
- "request_parameter_type": "string"
20
- }
21
- },
22
- "parameters": {
23
- "aggregation_strategy": {
24
- "type": "string",
25
- "default": "simple",
26
- "desc": "(Default: simple). There are several aggregation strategies:",
27
- "supportedValues": [
28
- {
29
- "value": "none",
30
- "desc": "Every token gets classified without further aggregation."
31
- },
32
- {
33
- "value": "simple",
34
- "desc": "Entities are grouped according to the default schema (B-, I- tags get merged when the tag is similar)."
35
- },
36
- {
37
- "value": "first",
38
- "desc": "Same as the simple strategy except words cannot end up with different tags. Words will use the tag of the first token when there is ambiguity."
39
- },
40
- {
41
- "value": "average",
42
- "desc": "Same as the simple strategy except words cannot end up with different tags. Scores are averaged across tokens and then the maximum label is applied."
43
- },
44
- {
45
- "value": "max",
46
- "desc": "Same as the simple strategy except words cannot end up with different tags. Word entity will be the token with the maximum score."
47
- }
48
- ]
49
- }
50
- },
51
- "formatRequest": "inputs: \"{{text}}\""
52
- },
53
- "table-question-answering": {
54
- "inputs": {
55
- "Query": {
56
- "type": "string",
57
- "desc": "(required) The query in plain text that you want to ask the table",
58
- "request_parameter_name": "query",
59
- "request_parameter_type": "string"
60
- },
61
- "Table": {
62
- "type": "string",
63
- "desc": "(required) A table of data represented as a dict of list where entries are headers and the lists are all the values, all lists must have the same size.",
64
- "request_parameter_name": "table",
65
- "request_parameter_type": "Record<string, string[]>"
66
- }
67
- },
68
- "formatRequest": "inputs: { query: \"{{query}}\", table: {{table}} }"
69
- },
70
- "question-answering": {
71
- "inputs": {
72
- "Question": {
73
- "type": "string",
74
- "request_parameter_name": "question",
75
- "request_parameter_type": "string"
76
- },
77
- "Context": {
78
- "type": "string",
79
- "request_parameter_name": "context",
80
- "request_parameter_type": "string"
81
- }
82
- },
83
- "formatRequest": "inputs: { context: \"{{context}}\", question: \"{{question}}\" }"
84
- },
85
- "document-question-answering": {
86
- "inputs": {
87
- "Image": {
88
- "type": "URL | base64 | file | SmythFileObject",
89
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
90
- "request_parameter_name": "image",
91
- "request_parameter_type": "Blob | ArrayBuffer"
92
- },
93
- "Question": {
94
- "type": "string",
95
- "desc": "(required) Question about document image.",
96
- "request_parameter_name": "question",
97
- "request_parameter_type": "string"
98
- }
99
- },
100
- "formatRequest": "inputs: { image: {{image}}, question: \"{{question}}\" }"
101
- },
102
- "visual-question-answering": {
103
- "inputs": {
104
- "Image": {
105
- "type": "URL | base64 | file | SmythFileObject",
106
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
107
- "request_parameter_name": "image",
108
- "request_parameter_type": "Blob | ArrayBuffer"
109
- },
110
- "Question": {
111
- "type": "string",
112
- "desc": "(required) Question about visual image.",
113
- "request_parameter_name": "question",
114
- "request_parameter_type": "string"
115
- }
116
- },
117
- "formatRequest": "inputs: { image: {{image}}, question: \"{{question}}\" }"
118
- },
119
- "zero-shot-classification": {
120
- "inputs": {
121
- "Text": {
122
- "type": "string",
123
- "desc": "(required) a string or list of strings",
124
- "request_parameter_name": "inputs",
125
- "request_parameter_type": "string | string[]"
126
- }
127
- },
128
- "parameters": {
129
- "candidate_labels": {
130
- "type": "string[]",
131
- "default": [],
132
- "desc": "(required) a list of strings that are potential classes for inputs. (max 10 candidate_labels, for more, simply run multiple requests, results are going to be misleading if using too many candidate_labels anyway. If you want to keep the exact same, you can simply run multi_label=true and do the scaling on your end. )"
133
- },
134
- "multi_label": {
135
- "type": "boolean",
136
- "default": false,
137
- "desc": "(Default: false) Boolean that is set to True if classes can overlap"
138
- }
139
- },
140
- "formatRequest": "inputs: \"{{text}}\", parameters: { candidate_labels: [{{candidate_labels}}] }"
141
- },
142
- "translation": {
143
- "inputs": {
144
- "Text": {
145
- "type": "string",
146
- "desc": "(required) a string to be translated in the original languages",
147
- "request_parameter_name": "inputs",
148
- "request_parameter_type": "string"
149
- }
150
- },
151
- "formatRequest": "inputs: \"{{text}}\""
152
- },
153
- "summarization": {
154
- "inputs": {
155
- "Text": {
156
- "type": "string",
157
- "desc": "(required) a string to be summarized",
158
- "request_parameter_name": "inputs",
159
- "request_parameter_type": "string"
160
- }
161
- },
162
- "parameters": {
163
- "min_length": {
164
- "type": "number",
165
- "default": "None",
166
- "desc": "(Default: None). Integer to define the minimum length in tokens of the output summary."
167
- },
168
- "max_length": {
169
- "type": "number",
170
- "default": "None",
171
- "desc": "(Default: None). Integer to define the maximum length in tokens of the output summary."
172
- },
173
- "top_k": {
174
- "type": "number",
175
- "default": "None",
176
- "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
177
- },
178
- "top_p": {
179
- "type": "number",
180
- "default": "None",
181
- "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
182
- },
183
- "temperature": {
184
- "type": "number",
185
- "default": 1,
186
- "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
187
- },
188
- "repetition_penalty": {
189
- "type": "number",
190
- "default": "None",
191
- "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
192
- },
193
- "max_time": {
194
- "type": "number",
195
- "default": "None",
196
- "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
197
- }
198
- },
199
- "formatRequest": "inputs: \"{{text}}\""
200
- },
201
- "conversational": {
202
- "inputs": {
203
- "Text": {
204
- "type": "string",
205
- "desc": "(required) The last input from the user in the conversation.",
206
- "request_parameter_name": "text",
207
- "request_parameter_type": "string"
208
- },
209
- "Generated_responses": {
210
- "type": "string[]",
211
- "desc": "A list of strings corresponding to the earlier replies from the model.",
212
- "request_parameter_name": "generated_responses",
213
- "request_parameter_type": "string[]"
214
- },
215
- "Past_user_inputs": {
216
- "type": "string[]",
217
- "desc": "A list of strings corresponding to the earlier replies from the user. Should be of the same length of generated_responses.",
218
- "request_parameter_name": "past_user_inputs",
219
- "request_parameter_type": "string[]"
220
- }
221
- },
222
- "parameters": {
223
- "min_length": {
224
- "type": "number",
225
- "default": "None",
226
- "desc": "(Default: None). Integer to define the minimum length in tokens of the output summary."
227
- },
228
- "max_length": {
229
- "type": "number",
230
- "default": "None",
231
- "desc": "(Default: None). Integer to define the maximum length in tokens of the output summary."
232
- },
233
- "top_k": {
234
- "type": "number",
235
- "default": "None",
236
- "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
237
- },
238
- "top_p": {
239
- "type": "number",
240
- "default": "None",
241
- "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
242
- },
243
- "temperature": {
244
- "type": "number",
245
- "default": 1,
246
- "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
247
- },
248
- "repetition_penalty": {
249
- "type": "number",
250
- "default": "None",
251
- "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
252
- },
253
- "max_time": {
254
- "type": "number",
255
- "default": "None",
256
- "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
257
- }
258
- },
259
- "formatRequest": "inputs: \"{{text}}\", past_user_inputs: [{{past_user_inputs}}], generated_responses: [{{generated_responses}}] }"
260
- },
261
- "text-generation": {
262
- "inputs": {
263
- "Text": {
264
- "type": "string",
265
- "desc": "(required) a string to be generated from",
266
- "request_parameter_name": "inputs",
267
- "request_parameter_type": "string"
268
- }
269
- },
270
- "parameters": {
271
- "do_sample": {
272
- "type": "boolean",
273
- "default": true,
274
- "desc": "(Optional: true). Bool. Whether or not to use sampling, use greedy decoding otherwise."
275
- },
276
- "max_time": {
277
- "type": "number",
278
- "default": "None",
279
- "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
280
- },
281
- "num_return_sequences": {
282
- "type": "number",
283
- "default": 1,
284
- "desc": "(Default: 1). Integer. The number of proposition you want to be returned."
285
- },
286
- "repetition_penalty": {
287
- "type": "number",
288
- "default": "None",
289
- "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
290
- },
291
- "return_full_text": {
292
- "type": "boolean",
293
- "default": true,
294
- "desc": "(Default: true). Bool. If set to False, the return results will not contain the original query making it easier for prompting."
295
- },
296
- "temperature": {
297
- "type": "number",
298
- "default": 1,
299
- "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
300
- },
301
- "max_new_tokens": {
302
- "type": "number",
303
- "default": "None",
304
- "desc": "(Default: None). Int (0-250). The amount of new tokens to be generated, this does not include the input length it is a estimate of the size of generated text you want. Each new tokens slows down the request, so look for balance between response times and length of text generated."
305
- },
306
- "top_k": {
307
- "type": "number",
308
- "default": "None",
309
- "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
310
- },
311
- "top_p": {
312
- "type": "number",
313
- "default": "None",
314
- "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
315
- },
316
- "truncate": {
317
- "type": "number",
318
- "default": "None",
319
- "desc": "(Default: None). Integer. The maximum number of tokens from the input."
320
- }
321
- },
322
- "formatRequest": "inputs: \"{{text}}\""
323
- },
324
- "text2text-generation": {
325
- "inputs": {
326
- "Text": {
327
- "type": "string",
328
- "desc": "(required) a string to be generated from",
329
- "request_parameter_name": "inputs",
330
- "request_parameter_type": "string"
331
- }
332
- },
333
- "parameters": {
334
- "max_time": {
335
- "type": "number",
336
- "default": "None",
337
- "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
338
- },
339
- "num_return_sequences": {
340
- "type": "number",
341
- "default": 1,
342
- "desc": "(Default: 1). Integer. The number of proposition you want to be returned."
343
- },
344
- "repetition_penalty": {
345
- "type": "number",
346
- "default": "None",
347
- "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
348
- },
349
- "temperature": {
350
- "type": "number",
351
- "default": 1,
352
- "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
353
- },
354
- "max_new_tokens": {
355
- "type": "number",
356
- "default": "None",
357
- "desc": "(Default: None). Int (0-250). The amount of new tokens to be generated, this does not include the input length it is a estimate of the size of generated text you want. Each new tokens slows down the request, so look for balance between response times and length of text generated."
358
- },
359
- "top_k": {
360
- "type": "number",
361
- "default": "None",
362
- "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
363
- },
364
- "top_p": {
365
- "type": "number",
366
- "default": "None",
367
- "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
368
- }
369
- },
370
- "formatRequest": "inputs: \"{{text}}\""
371
- },
372
- "fill-mask": {
373
- "inputs": {
374
- "Text": {
375
- "type": "string",
376
- "desc": "(required) a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask)",
377
- "request_parameter_name": "inputs",
378
- "request_parameter_type": "string"
379
- }
380
- },
381
- "formatRequest": "inputs: \"{{text}}\""
382
- },
383
- "sentence-similarity": {
384
- "inputs": {
385
- "Source_sentence": {
386
- "type": "string",
387
- "desc": "(required) The string that you wish to compare the other strings with. This can be a phrase, sentence, or longer passage, depending on the model being used.",
388
- "request_parameter_name": "source_sentence",
389
- "request_parameter_type": "string"
390
- },
391
- "Sentences": {
392
- "type": "string[]",
393
- "desc": "(required) A list of strings which will be compared against the source_sentence.",
394
- "request_parameter_name": "sentences",
395
- "request_parameter_type": "string[]"
396
- }
397
- },
398
- "formatRequest": "inputs: { source_sentence: \"{{source_sentence}}\", sentences: [{{sentences}}] }"
399
- },
400
- "text-to-image": {
401
- "inputs": {
402
- "Text": {
403
- "type": "string",
404
- "desc": "(required) prompt to generate image from",
405
- "request_parameter_name": "inputs",
406
- "request_parameter_type": "string"
407
- }
408
- },
409
- "formatRequest": "inputs: \"{{text}}\""
410
- },
411
- "image-to-text": {
412
- "inputs": {
413
- "Image": {
414
- "type": "URL | base64 | file | SmythFileObject",
415
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
416
- "request_parameter_name": "data",
417
- "request_parameter_type": "Blob | ArrayBuffer"
418
- }
419
- },
420
- "formatRequest": "data: {{image}} "
421
- },
422
- "image-classification": {
423
- "inputs": {
424
- "Image": {
425
- "type": "URL | base64 | file | SmythFileObject",
426
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
427
- "request_parameter_name": "data",
428
- "request_parameter_type": "Blob | ArrayBuffer"
429
- }
430
- },
431
- "formatRequest": "data: {{image}}"
432
- },
433
- "object-detection": {
434
- "inputs": {
435
- "Image": {
436
- "type": "URL | base64 | file | SmythFileObject",
437
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
438
- "request_parameter_name": "data",
439
- "request_parameter_type": "Blob | ArrayBuffer"
440
- }
441
- },
442
- "formatRequest": "data: {{image}}"
443
- },
444
- "image-segmentation": {
445
- "inputs": {
446
- "Image": {
447
- "type": "URL | base64 | file | SmythFileObject",
448
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
449
- "request_parameter_name": "data",
450
- "request_parameter_type": "Blob | ArrayBuffer"
451
- }
452
- },
453
- "formatRequest": "data: {{image}}"
454
- },
455
- "zero-shot-image-classification": {
456
- "inputs": {
457
- "Image": {
458
- "type": "URL | base64 | file | SmythFileObject",
459
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
460
- "request_parameter_name": "image",
461
- "request_parameter_type": "Blob | ArrayBuffer"
462
- }
463
- },
464
- "parameters": {
465
- "candidate_labels": {
466
- "type": "string[]",
467
- "desc": "A list of strings that are potential classes for inputs. (max 10)"
468
- }
469
- },
470
- "formatRequest": "inputs: { image: {{image}}, parameters: { candidate_labels: [{{candidate_labels}}] } }"
471
- },
472
- "image-to-image": {
473
- "inputs": {
474
- "Image": {
475
- "type": "URL | base64 | file | SmythFileObject",
476
- "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
477
- "request_parameter_name": "inputs",
478
- "request_parameter_type": "Blob | ArrayBuffer"
479
- }
480
- },
481
- "parameters": {
482
- "prompt": {
483
- "type": "string",
484
- "desc": "(Optional) The text prompt to guide the image generation",
485
- "default": "None"
486
- },
487
- "strength": {
488
- "type": "number",
489
- "default": 0,
490
- "desc": "(Optional) The 'strength' parameter is effective only for SD img2img and alt diffusion img2img models. It conceptually indicates the extent of transformation applied to the reference 'image,' with values between 0 and 1. A higher 'strength' adds more noise to the initial 'image,' and the denoising process runs for the specified number of iterations in 'num_inference_steps.' A 'strength' of 1 ignores the 'image,' applying maximum added noise and running denoising for the full set of iterations."
491
- },
492
- "negative_prompt": {
493
- "type": "string",
494
- "default": "None",
495
- "desc": "(Optional) A negative prompt for the image generation"
496
- },
497
- "height": {
498
- "type": "number",
499
- "default": "None",
500
- "desc": "(Optional) The height in pixels of the generated image"
501
- },
502
- "width": {
503
- "type": "number",
504
- "default": "None",
505
- "desc": "(Optional) The width in pixels of the generated image"
506
- },
507
- "num_inference_steps": {
508
- "type": "number",
509
- "default": "None",
510
- "desc": "(Optional) The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference."
511
- },
512
- "guidance_scale": {
513
- "type": "number",
514
- "default": "None",
515
- "desc": "(Optional) Guidance scale: Higher guidance scale encourages to generate images that are closely linked to the text `prompt`, usually at the expense of lower image quality."
516
- },
517
- "guess_mode": {
518
- "type": "boolean",
519
- "default": "None",
520
- "desc": "(Optional) guess_mode only works for ControlNet models, defaults to False In this mode, the ControlNet encoder will try best to recognize the content of the input image even if you remove all prompts. The `guidance_scale` between 3.0 and 5.0 is recommended."
521
- }
522
- },
523
- "formatRequest": "inputs: {{image}}"
524
- },
525
- "text-to-speech": {
526
- "inputs": {
527
- "Text": {
528
- "type": "string",
529
- "desc": "(required) a string to be converted to speech",
530
- "request_parameter_name": "inputs",
531
- "request_parameter_type": "string"
532
- }
533
- },
534
- "formatRequest": "inputs: \"{{text}}\""
535
- },
536
- "automatic-speech-recognition": {
537
- "inputs": {
538
- "Audio": {
539
- "type": "URL | base64 | SmythFileObject",
540
- "desc": "(required) audio URL, base64 string, SmythFileObject",
541
- "request_parameter_name": "data",
542
- "request_parameter_type": "Blob | ArrayBuffer"
543
- }
544
- },
545
- "formatRequest": "data: {{audio}}"
546
- },
547
- "audio-to-audio": {
548
- "inputs": {
549
- "Audio": {
550
- "type": "URL | base64 | SmythFileObject",
551
- "desc": "(required) audio URL, base64 string, SmythFileObject",
552
- "request_parameter_name": "data",
553
- "request_parameter_type": "Blob | ArrayBuffer"
554
- }
555
- },
556
- "formatRequest": "data: {{audio}}"
557
- },
558
- "audio-classification": {
559
- "inputs": {
560
- "Audio": {
561
- "type": "URL | base64 | SmythFileObject",
562
- "desc": "(required) audio URL, base64 string, SmythFileObject",
563
- "request_parameter_name": "data",
564
- "request_parameter_type": "Blob | ArrayBuffer"
565
- }
566
- },
567
- "formatRequest": "data: {{audio}}"
568
- },
569
- "feature-extraction": {
570
- "inputs": {
571
- "Text": {
572
- "type": "string | string[]",
573
- "desc": "(required) a string or a list of strings to get the features from.",
574
- "request_parameter_name": "inputs",
575
- "request_parameter_type": "string | string[]"
576
- }
577
- },
578
- "formatRequest": "inputs: \"{{text}}\""
579
- }
1
+ {
2
+ "text-classification": {
3
+ "inputs": {
4
+ "Text": {
5
+ "type": "string",
6
+ "desc": "(required) a string to be classified",
7
+ "request_parameter_name": "inputs",
8
+ "request_parameter_type": "string"
9
+ }
10
+ },
11
+ "formatRequest": "inputs: \"{{text}}\""
12
+ },
13
+ "token-classification": {
14
+ "inputs": {
15
+ "Text": {
16
+ "type": "string",
17
+ "desc": "(required) a string to be classified",
18
+ "request_parameter_name": "inputs",
19
+ "request_parameter_type": "string"
20
+ }
21
+ },
22
+ "parameters": {
23
+ "aggregation_strategy": {
24
+ "type": "string",
25
+ "default": "simple",
26
+ "desc": "(Default: simple). There are several aggregation strategies:",
27
+ "supportedValues": [
28
+ {
29
+ "value": "none",
30
+ "desc": "Every token gets classified without further aggregation."
31
+ },
32
+ {
33
+ "value": "simple",
34
+ "desc": "Entities are grouped according to the default schema (B-, I- tags get merged when the tag is similar)."
35
+ },
36
+ {
37
+ "value": "first",
38
+ "desc": "Same as the simple strategy except words cannot end up with different tags. Words will use the tag of the first token when there is ambiguity."
39
+ },
40
+ {
41
+ "value": "average",
42
+ "desc": "Same as the simple strategy except words cannot end up with different tags. Scores are averaged across tokens and then the maximum label is applied."
43
+ },
44
+ {
45
+ "value": "max",
46
+ "desc": "Same as the simple strategy except words cannot end up with different tags. Word entity will be the token with the maximum score."
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ "formatRequest": "inputs: \"{{text}}\""
52
+ },
53
+ "table-question-answering": {
54
+ "inputs": {
55
+ "Query": {
56
+ "type": "string",
57
+ "desc": "(required) The query in plain text that you want to ask the table",
58
+ "request_parameter_name": "query",
59
+ "request_parameter_type": "string"
60
+ },
61
+ "Table": {
62
+ "type": "string",
63
+ "desc": "(required) A table of data represented as a dict of list where entries are headers and the lists are all the values, all lists must have the same size.",
64
+ "request_parameter_name": "table",
65
+ "request_parameter_type": "Record<string, string[]>"
66
+ }
67
+ },
68
+ "formatRequest": "inputs: { query: \"{{query}}\", table: {{table}} }"
69
+ },
70
+ "question-answering": {
71
+ "inputs": {
72
+ "Question": {
73
+ "type": "string",
74
+ "request_parameter_name": "question",
75
+ "request_parameter_type": "string"
76
+ },
77
+ "Context": {
78
+ "type": "string",
79
+ "request_parameter_name": "context",
80
+ "request_parameter_type": "string"
81
+ }
82
+ },
83
+ "formatRequest": "inputs: { context: \"{{context}}\", question: \"{{question}}\" }"
84
+ },
85
+ "document-question-answering": {
86
+ "inputs": {
87
+ "Image": {
88
+ "type": "URL | base64 | file | SmythFileObject",
89
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
90
+ "request_parameter_name": "image",
91
+ "request_parameter_type": "Blob | ArrayBuffer"
92
+ },
93
+ "Question": {
94
+ "type": "string",
95
+ "desc": "(required) Question about document image.",
96
+ "request_parameter_name": "question",
97
+ "request_parameter_type": "string"
98
+ }
99
+ },
100
+ "formatRequest": "inputs: { image: {{image}}, question: \"{{question}}\" }"
101
+ },
102
+ "visual-question-answering": {
103
+ "inputs": {
104
+ "Image": {
105
+ "type": "URL | base64 | file | SmythFileObject",
106
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
107
+ "request_parameter_name": "image",
108
+ "request_parameter_type": "Blob | ArrayBuffer"
109
+ },
110
+ "Question": {
111
+ "type": "string",
112
+ "desc": "(required) Question about visual image.",
113
+ "request_parameter_name": "question",
114
+ "request_parameter_type": "string"
115
+ }
116
+ },
117
+ "formatRequest": "inputs: { image: {{image}}, question: \"{{question}}\" }"
118
+ },
119
+ "zero-shot-classification": {
120
+ "inputs": {
121
+ "Text": {
122
+ "type": "string",
123
+ "desc": "(required) a string or list of strings",
124
+ "request_parameter_name": "inputs",
125
+ "request_parameter_type": "string | string[]"
126
+ }
127
+ },
128
+ "parameters": {
129
+ "candidate_labels": {
130
+ "type": "string[]",
131
+ "default": [],
132
+ "desc": "(required) a list of strings that are potential classes for inputs. (max 10 candidate_labels, for more, simply run multiple requests, results are going to be misleading if using too many candidate_labels anyway. If you want to keep the exact same, you can simply run multi_label=true and do the scaling on your end. )"
133
+ },
134
+ "multi_label": {
135
+ "type": "boolean",
136
+ "default": false,
137
+ "desc": "(Default: false) Boolean that is set to True if classes can overlap"
138
+ }
139
+ },
140
+ "formatRequest": "inputs: \"{{text}}\", parameters: { candidate_labels: [{{candidate_labels}}] }"
141
+ },
142
+ "translation": {
143
+ "inputs": {
144
+ "Text": {
145
+ "type": "string",
146
+ "desc": "(required) a string to be translated in the original languages",
147
+ "request_parameter_name": "inputs",
148
+ "request_parameter_type": "string"
149
+ }
150
+ },
151
+ "formatRequest": "inputs: \"{{text}}\""
152
+ },
153
+ "summarization": {
154
+ "inputs": {
155
+ "Text": {
156
+ "type": "string",
157
+ "desc": "(required) a string to be summarized",
158
+ "request_parameter_name": "inputs",
159
+ "request_parameter_type": "string"
160
+ }
161
+ },
162
+ "parameters": {
163
+ "min_length": {
164
+ "type": "number",
165
+ "default": "None",
166
+ "desc": "(Default: None). Integer to define the minimum length in tokens of the output summary."
167
+ },
168
+ "max_length": {
169
+ "type": "number",
170
+ "default": "None",
171
+ "desc": "(Default: None). Integer to define the maximum length in tokens of the output summary."
172
+ },
173
+ "top_k": {
174
+ "type": "number",
175
+ "default": "None",
176
+ "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
177
+ },
178
+ "top_p": {
179
+ "type": "number",
180
+ "default": "None",
181
+ "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
182
+ },
183
+ "temperature": {
184
+ "type": "number",
185
+ "default": 1,
186
+ "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
187
+ },
188
+ "repetition_penalty": {
189
+ "type": "number",
190
+ "default": "None",
191
+ "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
192
+ },
193
+ "max_time": {
194
+ "type": "number",
195
+ "default": "None",
196
+ "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
197
+ }
198
+ },
199
+ "formatRequest": "inputs: \"{{text}}\""
200
+ },
201
+ "conversational": {
202
+ "inputs": {
203
+ "Text": {
204
+ "type": "string",
205
+ "desc": "(required) The last input from the user in the conversation.",
206
+ "request_parameter_name": "text",
207
+ "request_parameter_type": "string"
208
+ },
209
+ "Generated_responses": {
210
+ "type": "string[]",
211
+ "desc": "A list of strings corresponding to the earlier replies from the model.",
212
+ "request_parameter_name": "generated_responses",
213
+ "request_parameter_type": "string[]"
214
+ },
215
+ "Past_user_inputs": {
216
+ "type": "string[]",
217
+ "desc": "A list of strings corresponding to the earlier replies from the user. Should be of the same length of generated_responses.",
218
+ "request_parameter_name": "past_user_inputs",
219
+ "request_parameter_type": "string[]"
220
+ }
221
+ },
222
+ "parameters": {
223
+ "min_length": {
224
+ "type": "number",
225
+ "default": "None",
226
+ "desc": "(Default: None). Integer to define the minimum length in tokens of the output summary."
227
+ },
228
+ "max_length": {
229
+ "type": "number",
230
+ "default": "None",
231
+ "desc": "(Default: None). Integer to define the maximum length in tokens of the output summary."
232
+ },
233
+ "top_k": {
234
+ "type": "number",
235
+ "default": "None",
236
+ "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
237
+ },
238
+ "top_p": {
239
+ "type": "number",
240
+ "default": "None",
241
+ "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
242
+ },
243
+ "temperature": {
244
+ "type": "number",
245
+ "default": 1,
246
+ "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
247
+ },
248
+ "repetition_penalty": {
249
+ "type": "number",
250
+ "default": "None",
251
+ "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
252
+ },
253
+ "max_time": {
254
+ "type": "number",
255
+ "default": "None",
256
+ "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
257
+ }
258
+ },
259
+ "formatRequest": "inputs: \"{{text}}\", past_user_inputs: [{{past_user_inputs}}], generated_responses: [{{generated_responses}}] }"
260
+ },
261
+ "text-generation": {
262
+ "inputs": {
263
+ "Text": {
264
+ "type": "string",
265
+ "desc": "(required) a string to be generated from",
266
+ "request_parameter_name": "inputs",
267
+ "request_parameter_type": "string"
268
+ }
269
+ },
270
+ "parameters": {
271
+ "do_sample": {
272
+ "type": "boolean",
273
+ "default": true,
274
+ "desc": "(Optional: true). Bool. Whether or not to use sampling, use greedy decoding otherwise."
275
+ },
276
+ "max_time": {
277
+ "type": "number",
278
+ "default": "None",
279
+ "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
280
+ },
281
+ "num_return_sequences": {
282
+ "type": "number",
283
+ "default": 1,
284
+ "desc": "(Default: 1). Integer. The number of proposition you want to be returned."
285
+ },
286
+ "repetition_penalty": {
287
+ "type": "number",
288
+ "default": "None",
289
+ "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
290
+ },
291
+ "return_full_text": {
292
+ "type": "boolean",
293
+ "default": true,
294
+ "desc": "(Default: true). Bool. If set to False, the return results will not contain the original query making it easier for prompting."
295
+ },
296
+ "temperature": {
297
+ "type": "number",
298
+ "default": 1,
299
+ "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
300
+ },
301
+ "max_new_tokens": {
302
+ "type": "number",
303
+ "default": "None",
304
+ "desc": "(Default: None). Int (0-250). The amount of new tokens to be generated, this does not include the input length it is a estimate of the size of generated text you want. Each new tokens slows down the request, so look for balance between response times and length of text generated."
305
+ },
306
+ "top_k": {
307
+ "type": "number",
308
+ "default": "None",
309
+ "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
310
+ },
311
+ "top_p": {
312
+ "type": "number",
313
+ "default": "None",
314
+ "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
315
+ },
316
+ "truncate": {
317
+ "type": "number",
318
+ "default": "None",
319
+ "desc": "(Default: None). Integer. The maximum number of tokens from the input."
320
+ }
321
+ },
322
+ "formatRequest": "inputs: \"{{text}}\""
323
+ },
324
+ "text2text-generation": {
325
+ "inputs": {
326
+ "Text": {
327
+ "type": "string",
328
+ "desc": "(required) a string to be generated from",
329
+ "request_parameter_name": "inputs",
330
+ "request_parameter_type": "string"
331
+ }
332
+ },
333
+ "parameters": {
334
+ "max_time": {
335
+ "type": "number",
336
+ "default": "None",
337
+ "desc": "(Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit."
338
+ },
339
+ "num_return_sequences": {
340
+ "type": "number",
341
+ "default": 1,
342
+ "desc": "(Default: 1). Integer. The number of proposition you want to be returned."
343
+ },
344
+ "repetition_penalty": {
345
+ "type": "number",
346
+ "default": "None",
347
+ "desc": "(Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes."
348
+ },
349
+ "temperature": {
350
+ "type": "number",
351
+ "default": 1,
352
+ "desc": "(Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability."
353
+ },
354
+ "max_new_tokens": {
355
+ "type": "number",
356
+ "default": "None",
357
+ "desc": "(Default: None). Int (0-250). The amount of new tokens to be generated, this does not include the input length it is a estimate of the size of generated text you want. Each new tokens slows down the request, so look for balance between response times and length of text generated."
358
+ },
359
+ "top_k": {
360
+ "type": "number",
361
+ "default": "None",
362
+ "desc": "(Default: None). Integer to define the top tokens considered within the sample operation to create new text."
363
+ },
364
+ "top_p": {
365
+ "type": "number",
366
+ "default": "None",
367
+ "desc": "(Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p."
368
+ }
369
+ },
370
+ "formatRequest": "inputs: \"{{text}}\""
371
+ },
372
+ "fill-mask": {
373
+ "inputs": {
374
+ "Text": {
375
+ "type": "string",
376
+ "desc": "(required) a string to be filled from, must contain the [MASK] token (check model card for exact name of the mask)",
377
+ "request_parameter_name": "inputs",
378
+ "request_parameter_type": "string"
379
+ }
380
+ },
381
+ "formatRequest": "inputs: \"{{text}}\""
382
+ },
383
+ "sentence-similarity": {
384
+ "inputs": {
385
+ "Source_sentence": {
386
+ "type": "string",
387
+ "desc": "(required) The string that you wish to compare the other strings with. This can be a phrase, sentence, or longer passage, depending on the model being used.",
388
+ "request_parameter_name": "source_sentence",
389
+ "request_parameter_type": "string"
390
+ },
391
+ "Sentences": {
392
+ "type": "string[]",
393
+ "desc": "(required) A list of strings which will be compared against the source_sentence.",
394
+ "request_parameter_name": "sentences",
395
+ "request_parameter_type": "string[]"
396
+ }
397
+ },
398
+ "formatRequest": "inputs: { source_sentence: \"{{source_sentence}}\", sentences: [{{sentences}}] }"
399
+ },
400
+ "text-to-image": {
401
+ "inputs": {
402
+ "Text": {
403
+ "type": "string",
404
+ "desc": "(required) prompt to generate image from",
405
+ "request_parameter_name": "inputs",
406
+ "request_parameter_type": "string"
407
+ }
408
+ },
409
+ "formatRequest": "inputs: \"{{text}}\""
410
+ },
411
+ "image-to-text": {
412
+ "inputs": {
413
+ "Image": {
414
+ "type": "URL | base64 | file | SmythFileObject",
415
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
416
+ "request_parameter_name": "data",
417
+ "request_parameter_type": "Blob | ArrayBuffer"
418
+ }
419
+ },
420
+ "formatRequest": "data: {{image}} "
421
+ },
422
+ "image-classification": {
423
+ "inputs": {
424
+ "Image": {
425
+ "type": "URL | base64 | file | SmythFileObject",
426
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
427
+ "request_parameter_name": "data",
428
+ "request_parameter_type": "Blob | ArrayBuffer"
429
+ }
430
+ },
431
+ "formatRequest": "data: {{image}}"
432
+ },
433
+ "object-detection": {
434
+ "inputs": {
435
+ "Image": {
436
+ "type": "URL | base64 | file | SmythFileObject",
437
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
438
+ "request_parameter_name": "data",
439
+ "request_parameter_type": "Blob | ArrayBuffer"
440
+ }
441
+ },
442
+ "formatRequest": "data: {{image}}"
443
+ },
444
+ "image-segmentation": {
445
+ "inputs": {
446
+ "Image": {
447
+ "type": "URL | base64 | file | SmythFileObject",
448
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
449
+ "request_parameter_name": "data",
450
+ "request_parameter_type": "Blob | ArrayBuffer"
451
+ }
452
+ },
453
+ "formatRequest": "data: {{image}}"
454
+ },
455
+ "zero-shot-image-classification": {
456
+ "inputs": {
457
+ "Image": {
458
+ "type": "URL | base64 | file | SmythFileObject",
459
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
460
+ "request_parameter_name": "image",
461
+ "request_parameter_type": "Blob | ArrayBuffer"
462
+ }
463
+ },
464
+ "parameters": {
465
+ "candidate_labels": {
466
+ "type": "string[]",
467
+ "desc": "A list of strings that are potential classes for inputs. (max 10)"
468
+ }
469
+ },
470
+ "formatRequest": "inputs: { image: {{image}}, parameters: { candidate_labels: [{{candidate_labels}}] } }"
471
+ },
472
+ "image-to-image": {
473
+ "inputs": {
474
+ "Image": {
475
+ "type": "URL | base64 | file | SmythFileObject",
476
+ "desc": "(required) image URL, base64 string, uploaded image, or linked image output",
477
+ "request_parameter_name": "inputs",
478
+ "request_parameter_type": "Blob | ArrayBuffer"
479
+ }
480
+ },
481
+ "parameters": {
482
+ "prompt": {
483
+ "type": "string",
484
+ "desc": "(Optional) The text prompt to guide the image generation",
485
+ "default": "None"
486
+ },
487
+ "strength": {
488
+ "type": "number",
489
+ "default": 0,
490
+ "desc": "(Optional) The 'strength' parameter is effective only for SD img2img and alt diffusion img2img models. It conceptually indicates the extent of transformation applied to the reference 'image,' with values between 0 and 1. A higher 'strength' adds more noise to the initial 'image,' and the denoising process runs for the specified number of iterations in 'num_inference_steps.' A 'strength' of 1 ignores the 'image,' applying maximum added noise and running denoising for the full set of iterations."
491
+ },
492
+ "negative_prompt": {
493
+ "type": "string",
494
+ "default": "None",
495
+ "desc": "(Optional) A negative prompt for the image generation"
496
+ },
497
+ "height": {
498
+ "type": "number",
499
+ "default": "None",
500
+ "desc": "(Optional) The height in pixels of the generated image"
501
+ },
502
+ "width": {
503
+ "type": "number",
504
+ "default": "None",
505
+ "desc": "(Optional) The width in pixels of the generated image"
506
+ },
507
+ "num_inference_steps": {
508
+ "type": "number",
509
+ "default": "None",
510
+ "desc": "(Optional) The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference."
511
+ },
512
+ "guidance_scale": {
513
+ "type": "number",
514
+ "default": "None",
515
+ "desc": "(Optional) Guidance scale: Higher guidance scale encourages to generate images that are closely linked to the text `prompt`, usually at the expense of lower image quality."
516
+ },
517
+ "guess_mode": {
518
+ "type": "boolean",
519
+ "default": "None",
520
+ "desc": "(Optional) guess_mode only works for ControlNet models, defaults to False In this mode, the ControlNet encoder will try best to recognize the content of the input image even if you remove all prompts. The `guidance_scale` between 3.0 and 5.0 is recommended."
521
+ }
522
+ },
523
+ "formatRequest": "inputs: {{image}}"
524
+ },
525
+ "text-to-speech": {
526
+ "inputs": {
527
+ "Text": {
528
+ "type": "string",
529
+ "desc": "(required) a string to be converted to speech",
530
+ "request_parameter_name": "inputs",
531
+ "request_parameter_type": "string"
532
+ }
533
+ },
534
+ "formatRequest": "inputs: \"{{text}}\""
535
+ },
536
+ "automatic-speech-recognition": {
537
+ "inputs": {
538
+ "Audio": {
539
+ "type": "URL | base64 | SmythFileObject",
540
+ "desc": "(required) audio URL, base64 string, SmythFileObject",
541
+ "request_parameter_name": "data",
542
+ "request_parameter_type": "Blob | ArrayBuffer"
543
+ }
544
+ },
545
+ "formatRequest": "data: {{audio}}"
546
+ },
547
+ "audio-to-audio": {
548
+ "inputs": {
549
+ "Audio": {
550
+ "type": "URL | base64 | SmythFileObject",
551
+ "desc": "(required) audio URL, base64 string, SmythFileObject",
552
+ "request_parameter_name": "data",
553
+ "request_parameter_type": "Blob | ArrayBuffer"
554
+ }
555
+ },
556
+ "formatRequest": "data: {{audio}}"
557
+ },
558
+ "audio-classification": {
559
+ "inputs": {
560
+ "Audio": {
561
+ "type": "URL | base64 | SmythFileObject",
562
+ "desc": "(required) audio URL, base64 string, SmythFileObject",
563
+ "request_parameter_name": "data",
564
+ "request_parameter_type": "Blob | ArrayBuffer"
565
+ }
566
+ },
567
+ "formatRequest": "data: {{audio}}"
568
+ },
569
+ "feature-extraction": {
570
+ "inputs": {
571
+ "Text": {
572
+ "type": "string | string[]",
573
+ "desc": "(required) a string or a list of strings to get the features from.",
574
+ "request_parameter_name": "inputs",
575
+ "request_parameter_type": "string | string[]"
576
+ }
577
+ },
578
+ "formatRequest": "inputs: \"{{text}}\""
579
+ }
580
580
  }