diff --git a/blocks/blocks/github.ts b/blocks/blocks/github.ts index 8f484f506f..9ad0c82608 100644 --- a/blocks/blocks/github.ts +++ b/blocks/blocks/github.ts @@ -24,6 +24,17 @@ export const GitHubBlock: BlockConfig = { layout: 'half', placeholder: 'e.g., vscode', }, + { + id: 'action', + title: 'Action', + type: 'dropdown', + layout: 'full', + options: [ + { label: 'Get general info', id: 'general_info' }, + { label: 'Get pull requests', id: 'pull_requests' }, + ], + value: () => 'general_info', + }, { id: 'apiKey', title: 'GitHub Token', diff --git a/blocks/blocks/pinecone.ts b/blocks/blocks/pinecone.ts index 5633f93810..f851b8a247 100644 --- a/blocks/blocks/pinecone.ts +++ b/blocks/blocks/pinecone.ts @@ -23,14 +23,6 @@ export const PineconeBlock: BlockConfig = { { label: 'Delete', id: 'delete' }, ], }, - { - id: 'apiKey', - title: 'API Key', - type: 'short-input', - layout: 'full', - placeholder: 'Your Pinecone API key', - password: true, - }, { id: 'environment', title: 'Environment', @@ -58,7 +50,7 @@ export const PineconeBlock: BlockConfig = { id: 'topK', title: 'Top K Results', type: 'short-input', - layout: 'half', + layout: 'full', placeholder: '10', condition: { field: 'operation', value: 'query' }, }, @@ -104,6 +96,14 @@ export const PineconeBlock: BlockConfig = { value: () => 'false', condition: { field: 'operation', value: 'delete' }, }, + { + id: 'apiKey', + title: 'API Key', + type: 'short-input', + layout: 'full', + placeholder: 'Your Pinecone API key', + password: true, + }, ], tools: {