More silly little mistakes...

main
Cameron Murphy Reikes 2 years ago
parent 9263b088a6
commit 0f7e1c60c7

@ -2755,7 +2755,7 @@ void frame(void)
printf_buff(&completion_server_url, "%s/completion", SERVER_URL); printf_buff(&completion_server_url, "%s/completion", SERVER_URL);
int req_id = EM_ASM_INT({ int req_id = EM_ASM_INT({
return make_generation_request(UTF8ToString($1), UTF8ToString($0)); return make_generation_request(UTF8ToString($1), UTF8ToString($0));
}, completion_server_url, prompt.data); }, completion_server_url.data, prompt.data);
it->gen_request_id = req_id; it->gen_request_id = req_id;
#endif #endif

@ -256,7 +256,7 @@ func completion(w http.ResponseWriter, req *http.Request) {
if len(splitBody) != 2 { if len(splitBody) != 2 {
w.WriteHeader(http.StatusBadRequest) w.WriteHeader(http.StatusBadRequest)
log.Println("Weird body length %d not 2\n", len(splitBody)) log.Printf("Weird body length %d not 2\n", len(splitBody))
return return
} }
var promptString string = splitBody[1] var promptString string = splitBody[1]

Loading…
Cancel
Save