Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
fix: add missing array: instillFormat in connector output (#129)
Browse files Browse the repository at this point in the history
Because

- The console can't display the correct `array` label due to the lack of
an array-type `instillFormat`.

This commit

- Adds the missing array-type `instillFormat` in the connector output
definition.
  • Loading branch information
donch1989 authored Feb 22, 2024
1 parent 45e9869 commit 7837a98
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pkg/huggingface/v0/config/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@
"generated_responses": {
"description": "List of strings. The last outputs from the model in the conversation, after the model has run.",
"instillUIOrder": 0,
"instillFormat": "array:string",
"items": {
"instillFormat": "string",
"instillUIMultiline": true,
Expand All @@ -346,6 +347,7 @@
"past_user_inputs": {
"description": "List of strings. The last inputs from the user in the conversation, after the model has run.",
"instillUIOrder": 1,
"instillFormat": "array:string",
"items": {
"instillFormat": "string",
"instillUIMultiline": true,
Expand Down Expand Up @@ -925,6 +927,7 @@
"scores": {
"description": "The associated similarity score for each of the given strings",
"instillUIOrder": 0,
"instillFormat": "array:number",
"items": {
"instillFormat": "number",
"type": "number"
Expand Down Expand Up @@ -1223,6 +1226,7 @@
"cells": {
"description": "a list of coordinates of the cells contents",
"instillUIOrder": 2,
"instillFormat": "array:string",
"items": {
"instillFormat": "string",
"instillUIMultiline": true,
Expand All @@ -1239,6 +1243,7 @@
"instillFormat": "integer",
"type": "integer"
},
"instillFormat": "array:integer",
"type": "array"
},
"title": "Coordinates",
Expand Down Expand Up @@ -1829,6 +1834,7 @@
"labels": {
"description": "The list of strings for labels that you sent (in order)",
"instillUIOrder": 1,
"instillFormat": "array:string",
"items": {
"instillFormat": "string",
"type": "string"
Expand All @@ -1839,6 +1845,7 @@
"scores": {
"description": "a list of floats that correspond the the probability of label, in the same order as labels.",
"instillUIOrder": 0,
"instillFormat": "array:number",
"items": {
"instillFormat": "number",
"type": "number"
Expand Down
2 changes: 2 additions & 0 deletions pkg/instill/v0/config/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
"images": {
"description": "Images",
"instillUIOrder": 0,
"instillFormat": "array:image/jpeg",
"items": {
"instillFormat": "image/jpeg",
"type": "string"
Expand Down Expand Up @@ -599,6 +600,7 @@
"images": {
"description": "Images",
"instillUIOrder": 0,
"instillFormat": "array:image/jpeg",
"items": {
"instillFormat": "image/jpeg",
"type": "string"
Expand Down
1 change: 1 addition & 0 deletions pkg/numbers/v0/config/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
"description": "Asset Urls",
"instillEnableCopyButton": true,
"instillUIOrder": 0,
"instillFormat": "array:string",
"items": {
"instillEnableCopyButton": true,
"instillFormat": "string",
Expand Down
1 change: 1 addition & 0 deletions pkg/openai/v0/config/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@
"properties": {
"texts": {
"instillUIOrder": 0,
"instillFormat": "array:string",
"items": {
"instillFormat": "string",
"instillUIMultiline": true,
Expand Down
4 changes: 3 additions & 1 deletion pkg/pinecone/v0/config/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,11 @@
"values": {
"description": "Vector data values",
"instillUIOrder": 2,
"instillFormat": "array:number",
"items": {
"description": "Each float value represents one dimension",
"type": "number"
"type": "number",
"instillFormat": "number"
},
"title": "Values",
"type": "array"
Expand Down
2 changes: 2 additions & 0 deletions pkg/stabilityai/v0/config/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@
"images": {
"description": "Generated images",
"instillUIOrder": 0,
"instillFormat": "array:image/png",
"items": {
"instillFormat": "image/png",
"type": "string"
Expand All @@ -448,6 +449,7 @@
"seeds": {
"description": "Seeds of generated images",
"instillUIOrder": 1,
"instillFormat": "array:number",
"items": {
"$ref": "stabilityai.json#/components/schemas/Image/properties/seed",
"instillFormat": "number"
Expand Down

0 comments on commit 7837a98

Please sign in to comment.