MCPcopy Create free account
hub / github.com/diillson/chatcli / runtimeModelStatePath

Function runtimeModelStatePath

cli/gateway_runtime_model.go:45–47  ·  view source on GitHub ↗

runtimeModelStatePath returns ~/.chatcli/runtime_model.json (same state dir the gateway pidfile/log live in, so the daemon and REPL agree on location).

()

Source from the content-addressed store, hash-verified

43// runtimeModelStatePath returns ~/.chatcli/runtime_model.json (same state dir
44// the gateway pidfile/log live in, so the daemon and REPL agree on location).
45func runtimeModelStatePath() string {
46 return gatewayStatePath("runtime_model.json")
47}
48
49// writeRuntimeModelState records the current provider/model so a detached
50// gateway daemon mirrors the REPL's live choice. Called only from the

Callers 2

readRuntimeModelStateFunction · 0.85

Calls 1

gatewayStatePathFunction · 0.85

Tested by

no test coverage detected