Skip to content

Commit 2ab7b5f

Browse files
committed
take oauth selector below model selector
1 parent 5137950 commit 2ab7b5f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

apps/sim/blocks/blocks/agent.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,19 @@ export const AgentBlock: BlockConfig<AgentResponse> = {
110110
})
111111
},
112112
},
113-
113+
{
114+
id: 'vertexCredential',
115+
title: 'Google Cloud Account',
116+
type: 'oauth-input',
117+
serviceId: 'vertex-ai',
118+
requiredScopes: ['https://www.googleapis.com/auth/cloud-platform'],
119+
placeholder: 'Select Google Cloud account',
120+
required: true,
121+
condition: {
122+
field: 'model',
123+
value: providers.vertex.models,
124+
},
125+
},
114126
{
115127
id: 'reasoningEffort',
116128
title: 'Reasoning Effort',
@@ -314,19 +326,6 @@ export const AgentBlock: BlockConfig<AgentResponse> = {
314326
value: providers.vertex.models,
315327
},
316328
},
317-
{
318-
id: 'vertexCredential',
319-
title: 'Google Cloud Account',
320-
type: 'oauth-input',
321-
serviceId: 'vertex-ai',
322-
requiredScopes: ['https://www.googleapis.com/auth/cloud-platform'],
323-
placeholder: 'Select Google Cloud account',
324-
required: true,
325-
condition: {
326-
field: 'model',
327-
value: providers.vertex.models,
328-
},
329-
},
330329
{
331330
id: 'tools',
332331
title: 'Tools',

0 commit comments

Comments
 (0)