Skip to content

Commit b6c725e

Browse files
committed
improvement(agent): place credentials beside the model selector
1 parent 5ee7e31 commit b6c725e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/blocks/agent-evaluation.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Agent evaluation configuration', () => {
3131
const visible = AgentBlock.subBlocks
3232
.filter((field) => evaluateSubBlockCondition(field.condition, { model }))
3333
.map((field) => field.id)
34-
expect(visible).toEqual(['model', 'evaluationState', 'evaluationQuestions', 'apiKey'])
34+
expect(visible).toEqual(['model', 'apiKey', 'evaluationState', 'evaluationQuestions'])
3535
}
3636
)
3737

‎apps/sim/blocks/blocks/agent.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Return ONLY the JSON array.`,
158158
options: getAgentModelOptions,
159159
commandSearchable: true,
160160
},
161+
...getProviderCredentialSubBlocks(),
161162
{
162163
id: 'evaluationState',
163164
title: 'State',
@@ -285,7 +286,6 @@ Return ONLY the JSON array.`,
285286
},
286287
},
287288

288-
...getProviderCredentialSubBlocks(),
289289
{
290290
id: 'tools',
291291
title: 'Tools',

0 commit comments

Comments
 (0)