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

Method Chat

internal/llm/llm.go:286–290  ·  view source on GitHub ↗

Chat streams an assistant response on the returned channel, closing it when the stream ends. Reasoning runs at `high` effort by default; if the server rejects the tools + reasoning_effort combo (newer OpenAI models do), postChat drops reasoning_effort for this Client's lifetime so the model still wo

(parent context.Context, messages []chmctx.Message, tools []Tool)

Source from the content-addressed store, hash-verified

284
285// ProbeResult holds what Probe extracts from a one-shot hello request: the
286// live context window and budget snapshot. The TUI shows the real window at
287// activation time and feeds the authoritative size to ctx.Pack instead of the
288// config.yaml fallback.
289type ProbeResult struct {
290 ContextWindow int
291 Budget cloud.BudgetStatus
292}
293

Calls 1

runMethod · 0.95