Skip to content

Commit 02b80db

Browse files
committed
move api key under model, update mistral and groq
1 parent b976464 commit 02b80db

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

apps/sim/blocks/blocks/agent.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -407,18 +407,6 @@ Return ONLY the JSON array.`,
407407
value: providers.bedrock.models,
408408
},
409409
},
410-
{
411-
id: 'tools',
412-
title: 'Tools',
413-
type: 'tool-input',
414-
defaultValue: [],
415-
},
416-
{
417-
id: 'skills',
418-
title: 'Skills',
419-
type: 'skill-input',
420-
defaultValue: [],
421-
},
422410
{
423411
id: 'apiKey',
424412
title: 'API Key',
@@ -445,6 +433,18 @@ Return ONLY the JSON array.`,
445433
not: true, // Show for all models EXCEPT Ollama, vLLM, Vertex, and Bedrock models
446434
}),
447435
},
436+
{
437+
id: 'tools',
438+
title: 'Tools',
439+
type: 'tool-input',
440+
defaultValue: [],
441+
},
442+
{
443+
id: 'skills',
444+
title: 'Skills',
445+
type: 'skill-input',
446+
defaultValue: [],
447+
},
448448
{
449449
id: 'memoryType',
450450
title: 'Memory',

apps/sim/executor/handlers/agent/agent-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ export class AgentBlockHandler implements BlockHandler {
982982
workflowId: ctx.workflowId,
983983
workspaceId: ctx.workspaceId,
984984
stream: streaming,
985-
messages,
985+
messages: messages?.map(({ executionId, ...msg }) => msg),
986986
environmentVariables: ctx.environmentVariables || {},
987987
workflowVariables: ctx.workflowVariables || {},
988988
blockData,

apps/sim/providers/mistral/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ export const mistralProvider: ProviderConfig = {
141141
const streamingParams: ChatCompletionCreateParamsStreaming = {
142142
...payload,
143143
stream: true,
144-
stream_options: { include_usage: true },
145144
}
146145
const streamResponse = await mistral.chat.completions.create(streamingParams)
147146

@@ -453,7 +452,6 @@ export const mistralProvider: ProviderConfig = {
453452
messages: currentMessages,
454453
tool_choice: 'auto',
455454
stream: true,
456-
stream_options: { include_usage: true },
457455
}
458456
const streamResponse = await mistral.chat.completions.create(streamingParams)
459457

0 commit comments

Comments
 (0)