文档

API 更新日志

👾 LM Studio 0.3.9 • 2025-01-30

空闲 TTL 和自动驱逐

为通过 API 请求加载的模型设置 TTL(以秒为单位)(文档文章:空闲 TTL 和自动驱逐

curl https://127.0.0.1:1234/api/v0/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-r1-distill-qwen-7b",
    "messages": [ ... ]
+   "ttl": 300,
}'

使用 lms

lms load --ttl <seconds>

在聊天完成响应中分离 reasoning_content

对于 DeepSeek R1 模型,在单独的字段中获取推理内容。 请在此处查看更多here

在应用程序设置 > 开发者中开启此功能。



👾 LM Studio 0.3.6 • 2025-01-06

工具和函数调用 API

通过类似 OpenAI 的 API 使用任何支持工具使用和函数调用的 LLM。

文档:工具使用和函数调用



👾 LM Studio 0.3.5 • 2024-10-22

介绍 lms get:从终端下载模型

现在您可以使用关键字直接从终端下载模型

lms get deepseek-r1

或完整的 Hugging Face URL

lms get <hugging face url>

要仅过滤 MLX 模型,请将 --mlx 添加到命令。

lms get deepseek-r1 --mlx