فهرست منبع

server : fix uninitialized sampling context (close #3685)

Georgi Gerganov 2 سال پیش
والد
کامیت
a0edf73bda
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      examples/server/server.cpp

+ 1 - 1
examples/server/server.cpp

@@ -198,7 +198,7 @@ struct llama_server_context
     llama_model *model = nullptr;
     llama_context *ctx = nullptr;
     gpt_params params;
-    llama_sampling_context *ctx_sampling;
+    llama_sampling_context *ctx_sampling = nullptr;
     int n_ctx;
 
     bool truncated = false;