github.com/instill-ai/component@v0.16.0-beta/pkg/connector/huggingface/v0/config/definition.json (about)

     1  {
     2    "available_tasks": [
     3      "TASK_TEXT_GENERATION",
     4      "TASK_FILL_MASK",
     5      "TASK_SUMMARIZATION",
     6      "TASK_TEXT_CLASSIFICATION",
     7      "TASK_TOKEN_CLASSIFICATION",
     8      "TASK_TRANSLATION",
     9      "TASK_ZERO_SHOT_CLASSIFICATION",
    10      "TASK_QUESTION_ANSWERING",
    11      "TASK_TABLE_QUESTION_ANSWERING",
    12      "TASK_SENTENCE_SIMILARITY",
    13      "TASK_CONVERSATIONAL",
    14      "TASK_IMAGE_CLASSIFICATION",
    15      "TASK_IMAGE_SEGMENTATION",
    16      "TASK_OBJECT_DETECTION",
    17      "TASK_IMAGE_TO_TEXT",
    18      "TASK_SPEECH_RECOGNITION",
    19      "TASK_AUDIO_CLASSIFICATION"
    20    ],
    21    "custom": false,
    22    "documentation_url": "https://www.instill.tech/docs/latest/vdp/ai-connectors/hugging-face",
    23    "icon": "assets/hugging-face.svg",
    24    "icon_url": "",
    25    "id": "hugging-face",
    26    "public": true,
    27    "spec": {
    28      "connection_specification": {
    29        "$schema": "http://json-schema.org/draft-07/schema#",
    30        "additionalProperties": true,
    31        "properties": {
    32          "api_key": {
    33            "description": "Fill your Hugging face API token. To find your token, visit https://huggingface.co/settings/tokens.",
    34            "instillUpstreamTypes": [
    35              "reference"
    36            ],
    37            "instillAcceptFormats": [
    38              "string"
    39            ],
    40            "instillCredentialField": true,
    41            "instillUIOrder": 0,
    42            "title": "API Key",
    43            "type": "string"
    44          },
    45          "base_url": {
    46            "default": "https://api-inference.huggingface.co",
    47            "description": "Hostname for the endpoint. To use Inference API set to https://api-inference.huggingface.co, for Inference Endpoint set to your custom endpoint.",
    48            "instillUpstreamTypes": [
    49              "value"
    50            ],
    51            "instillAcceptFormats": [
    52              "string"
    53            ],
    54            "instillCredentialField": false,
    55            "instillUIOrder": 1,
    56            "title": "Base URL",
    57            "type": "string"
    58          },
    59          "is_custom_endpoint": {
    60            "default": false,
    61            "description": "Fill true if you are using a custom Inference Endpoint and not the Inference API.",
    62            "instillUpstreamTypes": [
    63              "value"
    64            ],
    65            "instillAcceptFormats": [
    66              "boolean"
    67            ],
    68            "instillCredentialField": false,
    69            "instillUIOrder": 2,
    70            "title": "Is Custom Endpoint",
    71            "type": "boolean"
    72          }
    73        },
    74        "required": [
    75          "api_key",
    76          "base_url",
    77          "is_custom_endpoint"
    78        ],
    79        "title": "Hugging Face Connection",
    80        "type": "object"
    81      }
    82    },
    83    "title": "Hugging Face",
    84    "description": "Connect the AI models served on the Hugging Face Platform",
    85    "tombstone": false,
    86    "type": "CONNECTOR_TYPE_AI",
    87    "uid": "0255ef87-33ce-4f88-b9db-8897f8c17233",
    88    "vendor": "Hugging Face",
    89    "vendor_attributes": {},
    90    "version": "0.1.1",
    91    "source_url": "https://github.com/instill-ai/component/blob/main/pkg/connector/huggingface/v0",
    92    "release_stage": "RELEASE_STAGE_ALPHA"
    93  }