feat(providers): removed providers from tools directory, added cerebras sdk

This commit is contained in:
Waleed Latif
2025-02-27 13:29:52 -08:00
parent f8e3665b77
commit fa67494fe7
22 changed files with 317 additions and 751 deletions
+4
View File
@@ -103,6 +103,9 @@ export class AgentBlockHandler implements BlockHandler {
.filter((t): t is NonNullable<typeof t> => t !== null)
: []
// Add local_execution: true for Cerebras provider
const additionalParams = providerId === 'cerebras' ? { local_execution: true } : {}
const response = await executeProviderRequest(providerId, {
model,
systemPrompt: inputs.systemPrompt,
@@ -114,6 +117,7 @@ export class AgentBlockHandler implements BlockHandler {
maxTokens: inputs.maxTokens,
apiKey: inputs.apiKey,
responseFormat,
...additionalParams,
})
// Return structured or standard response based on responseFormat