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

Function providerHeaders

packages/opencode/src/session/llm/native-runtime.ts:155–160  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

153}
154
155function providerHeaders(value: unknown): Record<string, string> | undefined {
156 if (!isRecord(value)) return undefined
157 return Object.fromEntries(
158 Object.entries(value).filter((entry): entry is [string, string] => typeof entry[1] === "string"),
159 )
160}
161
162function nativeSchema(value: unknown): JsonSchema {
163 if (!value || typeof value !== "object") return { type: "object", properties: {} }

Callers 1

streamFunction · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected