MCPcopy Create free account
hub / github.com/codehamr/codehamr / doPost

Method doPost

internal/llm/llm.go:401–438  ·  view source on GitHub ↗

doPost performs one round-trip, mapping status into the typed cloud errors Probe and sendChat share. On 200 it returns the live response with body open for streaming; on non-200 the body is drained and closed first. Budget is set only on 402. errBody returns the raw body on a non-2xx other than 401/

(parent context.Context, body chatRequest)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

postChatMethod · 0.95

Calls 2

AuthHeaderFunction · 0.92
errorMessageFromBodyFunction · 0.85

Tested by

no test coverage detected