getClient returns the current LLM client, safe for use from background goroutines.
()
| 576 | |
| 577 | // getClient returns the current LLM client, safe for use from background goroutines. |
| 578 | func (cli *ChatCLI) getClient() client.LLMClient { |
| 579 | cli.mu.Lock() |
| 580 | c := cli.Client |
| 581 | cli.mu.Unlock() |
| 582 | return c |
| 583 | } |
| 584 | |
| 585 | // providerMaxTokensEnv maps each known provider (canonical, upper-cased name) |
| 586 | // to its operator-facing override env var. Keeping this as a table rather |
no test coverage detected