MCPcopy Create free account
hub / github.com/anomalyco/opencode / parallelAuthHeaders

Function parallelAuthHeaders

packages/opencode/src/tool/websearch.ts:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function parallelAuthHeaders() {
55 const headers = { "User-Agent": `opencode/${InstallationVersion}` }
56 if (!process.env.PARALLEL_API_KEY) return headers
57 return { ...headers, Authorization: `Bearer ${process.env.PARALLEL_API_KEY}` }
58}
59
60function callProvider(
61 http: HttpClient.HttpClient,

Callers 1

callProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected