llm_close()

Read(11) Label: close, release resources,

Description:

Close LLM connection to release resources.

Syntax:

llm_close(fd)

Note:

LLMCli external library function (See External Library Guide).

 

The function closes the LLM connection to release resources.

Parameter:

fd

LLM connection object.

Example:

 

A

 

1

=llm_open("http://localhost:11434/api/chat","sk_adfsdfdf", "deepseek-r1:1.5b")

Connect to Deepseek model through the non-stream mode.

2

=llm_chat(A1,"简单介绍一下集算器函数A.sort(),不需要举例")

Ask questions.

3

>llm_close(A1)

Close the connection.