> ## Documentation Index
> Fetch the complete documentation index at: https://hyperlocalise.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# LM Studio

> 将 LM Studio 配置为用于生成翻译的 LLM 提供程序。

## 提供者值

在 `lmstudio` 中使用 `llm.profiles.<name>.provider`。

## 示例简介

```json theme={null}
{
  "llm": {
    "profiles": {
      "default": {
        "provider": "lmstudio",
        "model": "qwen2.5-7b-instruct",
        "prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
      }
    }
  }
}
```

## 可选环境变量

`LM_STUDIO_BASE_URL` 默认为 `http://127.0.0.1:1234/v1`。

`LM_STUDIO_API_KEY` 默认为 `lm-studio`。
