Skip to content

Commit 6c9bd07

Browse files
author
Theodore Li
committed
Add linkup hosted key
1 parent 0b6c8a9 commit 6c9bd07

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

apps/sim/tools/linkup/search.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,27 @@ export const searchTool: ToolConfig<LinkupSearchParams, LinkupSearchToolResponse
8282
},
8383
},
8484

85+
hosting: {
86+
envKeyPrefix: 'LINKUP_API_KEY',
87+
apiKeyParam: 'apiKey',
88+
byokProviderId: 'linkup',
89+
pricing: {
90+
type: 'custom',
91+
getCost: (params) => {
92+
// Linkup pricing (https://docs.linkup.so/pages/documentation/development/pricing):
93+
// Standard: €0.005/call ≈ $0.006
94+
// Deep: €0.05/call ≈ $0.055
95+
const depth = params.depth as string
96+
const cost = depth === 'deep' ? 0.055 : 0.006
97+
return { cost, metadata: { depth } }
98+
},
99+
},
100+
rateLimit: {
101+
mode: 'per_request',
102+
requestsPerMinute: 60,
103+
},
104+
},
105+
85106
request: {
86107
url: 'https://api.linkup.so/v1/search',
87108
method: 'POST',

0 commit comments

Comments
 (0)