Skip to content

Commit

Permalink
fix(schema): use camelCase for schema fields
Browse files Browse the repository at this point in the history
  • Loading branch information
heiruwu committed Jun 20, 2024
1 parent 9012905 commit 5629b6a
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 58 deletions.
70 changes: 35 additions & 35 deletions config/model/task_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "Classification",
"instillShortDescription": "Classify images into predefined categories.",
"properties": {
"image_base64": {
"imageBase64": {
"description": "Image base64",
"instillShortDescription": "Image base64",
"instillUIOrder": 0,
Expand All @@ -16,7 +16,7 @@
}
},
"required": [
"image_base64"
"imageBase64"
],
"type": "object"
},
Expand All @@ -25,7 +25,7 @@
"title": "Detection",
"instillShortDescription": "Detect and localize multiple objects in images.",
"properties": {
"image_base64": {
"imageBase64": {
"description": "Image base64",
"instillShortDescription": "Image base64",
"instillUIOrder": 0,
Expand All @@ -37,7 +37,7 @@
}
},
"required": [
"image_base64"
"imageBase64"
],
"type": "object"
},
Expand All @@ -46,7 +46,7 @@
"title": "Ocr",
"instillShortDescription": "Detect and recognize text in images.",
"properties": {
"image_base64": {
"imageBase64": {
"description": "Image base64",
"instillShortDescription": "Image base64",
"instillUIOrder": 0,
Expand All @@ -58,7 +58,7 @@
}
},
"required": [
"image_base64"
"imageBase64"
],
"type": "object"
},
Expand All @@ -67,7 +67,7 @@
"title": "Semantic Segmentation",
"instillShortDescription": "Classify image pixels into predefined categories.",
"properties": {
"image_base64": {
"imageBase64": {
"description": "Image base64",
"instillShortDescription": "Image base64",
"instillUIOrder": 0,
Expand All @@ -79,7 +79,7 @@
}
},
"required": [
"image_base64"
"imageBase64"
],
"type": "object"
},
Expand All @@ -88,7 +88,7 @@
"title": "Keypoint",
"instillShortDescription": "Detect and localize multiple keypoints of objects in images.",
"properties": {
"image_base64": {
"imageBase64": {
"description": "Image base64",
"instillShortDescription": "Image base64",
"instillUIOrder": 0,
Expand All @@ -100,7 +100,7 @@
}
},
"required": [
"image_base64"
"imageBase64"
],
"type": "object"
},
Expand All @@ -109,7 +109,7 @@
"title": "Instance Segmentation",
"instillShortDescription": "Detect, localize and delineate multiple objects in images.",
"properties": {
"image_base64": {
"imageBase64": {
"description": "Image base64",
"instillShortDescription": "Image base64",
"instillUIOrder": 0,
Expand All @@ -121,7 +121,7 @@
}
},
"required": [
"image_base64"
"imageBase64"
],
"type": "object"
},
Expand All @@ -130,7 +130,7 @@
"title": "Text To Image",
"instillShortDescription": "Generate images from input text prompts.",
"properties": {
"cfg_scale": {
"cfgScale": {
"type": "number",
"description": "The guidance scale, default is 7.5",
"instillAcceptFormats": [
Expand All @@ -142,7 +142,7 @@
"instillUIOrder": 2,
"title": "CFG Scale"
},
"extra_params": {
"extraParams": {
"type": "string",
"description": "Extra Parameters",
"instillAcceptFormats": [
Expand Down Expand Up @@ -207,7 +207,7 @@
"title": "Image To Image",
"instillShortDescription": "Generate image from input text prompt and image.",
"properties": {
"cfg_scale": {
"cfgScale": {
"type": "number",
"description": "The guidance scale, default is 7.5",
"instillAcceptFormats": [
Expand All @@ -219,7 +219,7 @@
"instillUIOrder": 3,
"title": "CFG Scale"
},
"extra_params": {
"extraParams": {
"type": "string",
"description": "Extra Parameters",
"instillAcceptFormats": [
Expand All @@ -229,7 +229,7 @@
"instillUIOrder": 6,
"title": "Extra Parameters"
},
"image_base64": {
"imageBase64": {
"description": "Image base64",
"instillShortDescription": "Image base64",
"instillAcceptFormats": [
Expand Down Expand Up @@ -272,7 +272,7 @@
"instillUIOrder": 4,
"title": "Seed"
},
"top_k": {
"topK": {
"type": "integer",
"description": "Top k for sampling",
"instillAcceptFormats": [
Expand All @@ -286,7 +286,7 @@
},
"required": [
"prompt",
"image_base64"
"imageBase64"
],
"type": "object"
},
Expand All @@ -295,7 +295,7 @@
"title": "Text Generation",
"instillShortDescription": "Generate texts from input text prompts.",
"properties": {
"extra_params": {
"extraParams": {
"type": "string",
"description": "Extra Parameters",
"instillAcceptFormats": [
Expand All @@ -305,7 +305,7 @@
"instillUIOrder": 8,
"title": "Extra Parameters"
},
"max_new_tokens": {
"maxNewTokens": {
"type": "integer",
"default": 50,
"description": "The maximum number of tokens for model to generate",
Expand All @@ -327,7 +327,7 @@
"instillUIOrder": 1,
"title": "Prompt"
},
"prompt_images": {
"promptImages": {
"description": "The prompt images",
"instillModelPromptImageBase64ObjectFormat": true,
"instillAcceptFormats": [
Expand All @@ -348,7 +348,7 @@
"instillUIOrder": 6,
"title": "Seed"
},
"system_message": {
"systemMessage": {
"instillUIMultiline": true,
"type": "string",
"description": "The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model’s behavior is using a generic message as \"You are a helpful assistant.\"",
Expand All @@ -371,7 +371,7 @@
"instillUIOrder": 5,
"title": "Temperature"
},
"top_k": {
"topK": {
"type": "integer",
"description": "Top k for sampling",
"instillAcceptFormats": [
Expand All @@ -393,7 +393,7 @@
"title": "Text Generation Chat",
"instillShortDescription": "Generate texts from input text prompts and chat history.",
"properties": {
"extra_params": {
"extraParams": {
"type": "string",
"description": "Extra Parameters",
"instillAcceptFormats": [
Expand All @@ -403,7 +403,7 @@
"instillUIOrder": 8,
"title": "Extra Parameters"
},
"max_new_tokens": {
"maxNewTokens": {
"type": "integer",
"default": 50,
"description": "The maximum number of tokens for model to generate",
Expand All @@ -425,7 +425,7 @@
"instillUIOrder": 1,
"title": "Prompt"
},
"prompt_images": {
"promptImages": {
"description": "The prompt images",
"instillModelPromptImageBase64ObjectFormat": true,
"instillAcceptFormats": [
Expand All @@ -446,7 +446,7 @@
"instillUIOrder": 6,
"title": "Seed"
},
"system_message": {
"systemMessage": {
"instillUIMultiline": true,
"type": "string",
"description": "The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model’s behavior is using a generic message as \"You are a helpful assistant.\"",
Expand All @@ -469,7 +469,7 @@
"instillUIOrder": 5,
"title": "Temperature"
},
"top_k": {
"topK": {
"type": "integer",
"description": "Top k for sampling",
"instillAcceptFormats": [
Expand All @@ -491,7 +491,7 @@
"title": "Visual Question Answering",
"instillShortDescription": "Answer questions based on a prompt and an image.",
"properties": {
"extra_params": {
"extraParams": {
"type": "string",
"description": "Extra Parameters",
"instillAcceptFormats": [
Expand All @@ -501,7 +501,7 @@
"instillUIOrder": 8,
"title": "Extra Parameters"
},
"max_new_tokens": {
"maxNewTokens": {
"type": "integer",
"default": 50,
"description": "The maximum number of tokens for model to generate",
Expand All @@ -523,7 +523,7 @@
"instillUIOrder": 1,
"title": "Prompt"
},
"prompt_images": {
"promptImages": {
"description": "The prompt images",
"instillModelPromptImageBase64ObjectFormat": true,
"instillAcceptFormats": [
Expand All @@ -544,7 +544,7 @@
"instillUIOrder": 6,
"title": "Seed"
},
"system_message": {
"systemMessage": {
"instillUIMultiline": true,
"type": "string",
"description": "The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. By default, the model’s behavior is using a generic message as \"You are a helpful assistant.\"",
Expand All @@ -567,7 +567,7 @@
"instillUIOrder": 5,
"title": "Temperature"
},
"top_k": {
"topK": {
"type": "integer",
"description": "Top k for sampling",
"instillAcceptFormats": [
Expand All @@ -581,7 +581,7 @@
},
"required": [
"prompt",
"prompt_images"
"promptImages"
],
"type": "object"
}
Expand Down
Loading

0 comments on commit 5629b6a

Please sign in to comment.