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

Function repl_chat_create_session

ds4_cli.c:1041–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039 free(live_logits);
1040 free(fresh_logits);
1041 return 1;
1042 }
1043 ds4_session_set_progress(fresh, NULL, NULL);
1044 ds4_session_set_display_progress(fresh, NULL, NULL);
1045
1046 ds4_token_score fresh_top[10];
1047 int fresh_top_n = ds4_session_top_logprobs(fresh, fresh_top, 10);
1048 if (ds4_session_copy_logits(fresh, fresh_logits, vocab) != vocab) {
1049 fprintf(stderr, "ds4: failed to copy fresh logits\n");
1050 ds4_session_free(fresh);
1051 ds4_tokens_free(&prefix);
1052 free(live_logits);
1053 free(fresh_logits);
1054 return 1;

Callers 2

repl_chat_initFunction · 0.85
repl_chat_set_ctxFunction · 0.85

Calls 2

ds4_session_createFunction · 0.85
ds4_session_freeFunction · 0.85

Tested by

no test coverage detected