Hugging Face
Hugging Face is on a journey to advance and democratize artificial intelligence through open source and open science.
Categories: Artificial Intelligence
Type: huggingFace/v1
Connections
Version: 1
Bearer Token
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| token | Token | STRING | true |
Actions
Ask
Name: ask
Ask anything you want.
Properties
| Name | Label | Type | Description | Required |
|---|---|---|---|---|
| url | URL | STRING | Url of the inference endpoint | false |
| format | Format | STRING OptionsSIMPLE, ADVANCED | Format of providing the prompt to the model. | true |
| userPrompt | Prompt | STRING | User prompt to the model. | true |
| systemPrompt | System Prompt | STRING | System prompt to the model. | false |
| attachments | Attachments | ARRAY Items[FILE_ENTRY] | Only text and image files are supported. Also, only certain models supports images. Please check the documentation. | false |
| messages | Messages | ARRAY Items[{STRING(role), STRING(content), [FILE_ENTRY](attachments)}] | A list of messages comprising the conversation so far. | true |
| response | Response | OBJECT Properties{STRING(responseFormat), STRING(responseSchema)} | The response from the API. | true |
Example JSON Structure
{
"label" : "Ask",
"name" : "ask",
"parameters" : {
"url" : "",
"format" : "",
"userPrompt" : "",
"systemPrompt" : "",
"attachments" : [ {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
} ],
"messages" : [ {
"role" : "",
"content" : "",
"attachments" : [ {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
} ]
} ],
"response" : {
"responseFormat" : "",
"responseSchema" : ""
}
},
"type" : "huggingFace/v1/ask"
}Output
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
How is this guide?
Last updated on