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

Function modelFrom

packages/opencode/test/lib/llm-server.ts:412–416  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

410}
411
412function modelFrom(body: unknown) {
413 if (!body || typeof body !== "object") return "test-model"
414 if (!("model" in body) || typeof body.model !== "string") return "test-model"
415 return body.model
416}
417
418function send(item: Sse) {
419 const head = bytes(item.head)

Callers 1

TestLLMServerClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected