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

Function providerMessage

packages/llm/src/route/executor.ts:204–207  ·  view source on GitHub ↗
(status: number, body: { readonly body?: string })

Source from the content-addressed store, hash-verified

202}
203
204const providerMessage = (status: number, body: { readonly body?: string }) => {
205 if (body.body && body.body.length <= 500) return `Provider request failed with HTTP ${status}: ${body.body}`
206 return `Provider request failed with HTTP ${status}`
207}
208
209const responseHttp = (input: {
210 readonly request: HttpClientRequest.HttpClientRequest

Callers 1

statusErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected