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

# Groq

> 将 Groq 配置为用于翻译生成的 LLM 提供商。

## 提供者值

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

## 示例资料

```json theme={null}
{
  "llm": {
    "profiles": {
      "default": {
        "provider": "groq",
        "model": "llama-3.3-70b-versatile",
        "prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
      }
    }
  }
}
```

## 必需的环境变量

<CodeGroup>
  ```bash Export theme={null}
  export GROQ_API_KEY="your-groq-api-key"
  ```

  ```bash .env.local theme={null}
  GROQ_API_KEY="your-groq-api-key"
  ```
</CodeGroup>

## 可选环境变量

`GROQ_BASE_URL` 默认为 `https://api.groq.com/openai/v1`。
