Skip to content

Commit 573da20

Browse files
committed
set template before starting server
1 parent 97a5b27 commit 573da20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/LLM.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ private void InitService(string arguments)
377377
{
378378
if (debug) CallWithLock(SetupLogging);
379379
CallWithLock(() => { LLMObject = llmlib.LLM_Construct(arguments); });
380-
if (remote) CallWithLock(() => llmlib.LLM_StartServer(LLMObject));
381380
CallWithLock(() => llmlib.LLM_SetTemplate(LLMObject, chatTemplate));
381+
if (remote) CallWithLock(() => llmlib.LLM_StartServer(LLMObject));
382382
CallWithLock(() => CheckLLMStatus(false));
383383
}
384384

0 commit comments

Comments
 (0)