MCPcopy Create free account
hub / github.com/antirez/ds4 / cli_effective_think_mode

Function cli_effective_think_mode

ds4_cli.c:209–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208static float parse_float_range(const char *s, const char *opt, float min, float max) {
209 char *end = NULL;
210 float v = strtof(s, &end);
211 if (s[0] == '\0' || *end != '\0' || !isfinite(v) || v < min || v > max) {
212 fprintf(stderr, "ds4: invalid value for %s: %s\n", opt, s);
213 exit(2);
214 }

Callers 5

cli_think_max_downgradedFunction · 0.85
build_promptFunction · 0.85
run_sampled_generationFunction · 0.85
run_generationFunction · 0.85
repl_chat_initFunction · 0.85

Calls 1

Tested by

no test coverage detected