MCPcopy Index your code
hub / github.com/anomalyco/opencode / withoutCredentials

Function withoutCredentials

packages/core/src/plugin/provider/opencode.ts:214–216  ·  view source on GitHub ↗
(body: Readonly<Record<string, unknown>> | undefined)

Source from the content-addressed store, hash-verified

212}
213
214function withoutCredentials(body: Readonly<Record<string, unknown>> | undefined) {
215 return Object.fromEntries(Object.entries(body ?? {}).filter(([key]) => key !== "apiKey" && key !== "headers"))
216}
217
218function remoteCost(input: NonNullable<(typeof ConfigProviderV1.Model.Type)["cost"]>) {
219 const base = {

Callers 1

opencode.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected