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

Function transformParams

packages/opencode/src/session/llm.ts:330–340  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

328 {
329 specificationVersion: "v3" as const,
330 async transformParams(args) {
331 if (args.type === "stream") {
332 // @ts-expect-error
333 args.params.prompt = ProviderTransform.message(
334 args.params.prompt,
335 input.model,
336 prepared.messageTransformOptions,
337 )
338 }
339 return args.params
340 },
341 },
342 ],
343 }),

Callers

nothing calls this directly

Calls 1

messageMethod · 0.45

Tested by

no test coverage detected