api: don't log resulting tokens on backend

This commit is contained in:
mappu 2023-04-08 15:48:26 +12:00
parent 2cdcf54dd8
commit 2c11e32018

2
api.go
View File

@ -150,8 +150,6 @@ func (this *Application) POST_Chat(w http.ResponseWriter, r *http.Request) {
// The model did have something to say // The model did have something to say
tokenStr := C.GoString(C.llama_token_to_str(lcontext, newTokenId)) tokenStr := C.GoString(C.llama_token_to_str(lcontext, newTokenId))
log.Printf("token is %q", tokenStr)
// Push this new token into the lembedding_ state, or else we'll just get it over and over again // Push this new token into the lembedding_ state, or else we'll just get it over and over again
llast_n_tokens[i] = newTokenId llast_n_tokens[i] = newTokenId