mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
feature(blocks): added github dropdown for actions
This commit is contained in:
@@ -24,6 +24,17 @@ export const GitHubBlock: BlockConfig<RepoInfoResponse> = {
|
||||
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',
|
||||
|
||||
@@ -23,14 +23,6 @@ export const PineconeBlock: BlockConfig<PineconeResponse> = {
|
||||
{ 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<PineconeResponse> = {
|
||||
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<PineconeResponse> = {
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user