---
title: AnythingLLM | RunAPI
description: 安裝 AnythingLLM，為 RunAPI 設定其 Generic OpenAI 提供者，選擇模型限制，並驗證工作區聊天。
url: https://runapi.ai/zh-TW/docs/resources/application-practices/anythingllm.md
canonical: https://runapi.ai/zh-TW/docs/resources/application-practices/anythingllm
locale: zh-TW
---

> HTML 版本: https://runapi.ai/zh-TW/docs/resources/application-practices/anythingllm
> 代理程式網站索引: https://runapi.ai/llms.txt

# AnythingLLM

AnythingLLM 為相容的 Chat Completions 服務提供以開發者為導向的 **OpenAI (generic)** 提供者。開始之前，請依照[身分驗證指南](https://runapi.ai/zh-TW/docs/guides/authentication.md)建立標準 RunAPI API 金鑰，並從[模型目錄](https://runapi.ai/zh-TW/models)選擇一個模型。

## 安裝 AnythingLLM

使用 [AnythingLLM 官方安裝指南][1]安裝桌面版或自架版本。開啟 AnythingLLM 並完成初始設定後，再變更 LLM 提供者。



[1]: https://docs.anythingllm.com/installation-desktop/overview

## 設定 OpenAI（通用）

1.  開啟 **Settings → LLM Preference**，並選取 **OpenAI (generic)**。
2.  輸入 `https://runapi.ai/v1` 作為 **Base URL**。請勿附加 `/chat/completions`；AnythingLLM 會自動加上操作路徑。
3.  輸入您的 RunAPI API 金鑰。
4.  在 **Selected Model** 下選擇確切的 RunAPI 識別碼。若模型清單為空，請從[模型目錄](https://runapi.ai/zh-TW/models)輸入識別碼。
5.  將 **Model context window** 與 **Max Tokens** 設為該模型所支援的數值，然後儲存提供者。

AnythingLLM 使用 **Model context window** 來分配系統指令、歷史記錄與使用者輸入的預算。它會將 **Max Tokens** 作為 `max_tokens` 傳送，因此這些數值必須依據所選模型設定，而非套用通用範例值。

## 驗證連線

建立或開啟工作區，開始對話，並傳送 `Reply with the word
connected.`。收到文字回覆即表示工作區正在使用已儲存的
RunAPI 提供者與所選模型。

## 疑難排解

* **沒有列出任何模型：** 請確認 Base URL 確實為 `https://runapi.ai/v1`，然後手動輸入目前的模型識別碼。
* **請求因長度問題被拒絕：** 請減少工作區歷史記錄，或根據所選模型的目前限制，修正**模型上下文視窗**及 **Max Tokens** 設定。
* **身分驗證失敗：** 請在 **OpenAI (generic)** 中，以[身分驗證指南](https://runapi.ai/zh-TW/docs/guides/authentication.md)取得的有效標準金鑰更新 API 金鑰。
* **工作區由其他模型回應：** 請重新開啟 **LLM Preference**，確認 **OpenAI (generic)** 已啟用，然後再次儲存所需的**已選取模型**。

如需共用協定行為，請參閱 [LLM API 快速入門](https://runapi.ai/zh-TW/docs/guides/llm-api/quickstart.md)。如需請求與回應欄位，請參閱 [Chat Completions API 參考](https://runapi.ai/zh-TW/docs/api/openai/chat-completions.md)。

---

## RunAPI 的更多內容

- [首頁](https://runapi.ai/zh-TW/.md)
- [模型目錄](https://runapi.ai/zh-TW/models.md)
- [價格](https://runapi.ai/zh-TW/pricing.md)
- [提供商](https://runapi.ai/zh-TW/models)
- [文件](https://runapi.ai/zh-TW/docs/guides)
- [SDK](https://runapi.ai/zh-TW/sdk.md)
- [CLI](https://runapi.ai/zh-TW/cli.md)
- [MCP Server](https://runapi.ai/zh-TW/mcp.md)
- [Claude Code 與 Cursor](https://runapi.ai/zh-TW/claude-code-vs-cursor.md)
- [Cursor API 設定](https://runapi.ai/zh-TW/cursor-api-setup.md)
- [RunAPI 與 OpenRouter](https://runapi.ai/zh-TW/openrouter-alternative.md)
- [企業版](https://runapi.ai/zh-TW/contact.md)
- [聯絡我們](https://runapi.ai/zh-TW/contact.md)
- [服務條款](https://runapi.ai/zh-TW/terms.md)
- [隱私權](https://runapi.ai/zh-TW/privacy.md)
- [代理程式網站索引](https://runapi.ai/llms.txt)

聯絡我們: contact@runapi.ai

## 結構化資料

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-TW",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-TW/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-TW",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-TWicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "TechArticle",
    "headline": "AnythingLLM",
    "description": "安裝 AnythingLLM，為 RunAPI 設定其 Generic OpenAI 提供者，選擇模型限制，並驗證工作區聊天。",
    "url": "https://runapi.ai/zh-TW/docs/resources/application-practices/anythingllm",
    "mainEntityOfPage": "https://runapi.ai/zh-TW/docs/resources/application-practices/anythingllm"
  }
]
```
