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

Function print_default

ds4_help.c:523–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521 opt(fp, c, "first 10", "./ds4-eval --questions 10 --trace eval.trace");
522 opt(fp, c, "plain", "./ds4-eval --plain --nothink --tokens 512");
523 } else {
524 opt(fp, c, "chat", "./ds4");
525 opt(fp, c, "one shot", "./ds4 -p \"Explain mmap in C\"");
526 opt(fp, c, "long prompt", "./ds4 --think-max --prompt-file prompt.txt --ctx 393216");
527 }
528 fputc('\n', fp);
529}
530
531static void print_topic(FILE *fp, const help_colors *c, ds4_help_tool tool, const char *topic) {
532 if (streq(topic, "all")) {
533 print_model_runtime(fp, c, tool, true);
534 if (tool_has_topic(tool, "sampling")) print_sampling(fp, c, true, tool);
535 if (tool_has_topic(tool, "steering")) print_steering(fp, c);
536 print_distributed(fp, c);
537 if (tool == DS4_HELP_DS4) {
538 print_cli_specific(fp, c, true);
539 print_cli_commands(fp, c);
540 } else if (tool == DS4_HELP_SERVER) {
541 print_server_api(fp, c);
542 print_server_thinking(fp, c);
543 print_kv_cache(fp, c);

Callers 1

ds4_help_printFunction · 0.85

Calls 9

print_model_runtimeFunction · 0.85
print_cli_specificFunction · 0.85
print_samplingFunction · 0.85
print_server_apiFunction · 0.85
print_kv_cacheFunction · 0.85
print_agent_specificFunction · 0.85
print_agent_sessionsFunction · 0.85
print_bench_specificFunction · 0.85
print_eval_specificFunction · 0.85

Tested by

no test coverage detected