From 0f7e1c60c75dc4883553cceff53874c9e13ccc7b Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Sat, 1 Apr 2023 14:58:00 -0700 Subject: [PATCH] More silly little mistakes... --- main.c | 2 +- server/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index a7367c0..74b176d 100644 --- a/main.c +++ b/main.c @@ -2755,7 +2755,7 @@ void frame(void) printf_buff(&completion_server_url, "%s/completion", SERVER_URL); int req_id = EM_ASM_INT({ 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; #endif diff --git a/server/main.go b/server/main.go index 96fa4ed..55f6234 100644 --- a/server/main.go +++ b/server/main.go @@ -256,7 +256,7 @@ func completion(w http.ResponseWriter, req *http.Request) { if len(splitBody) != 2 { 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 } var promptString string = splitBody[1]