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

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

# AnythingLLM

AnythingLLM 為相容的 Chat Completions 服務提供以開發者為中心的**OpenAI (generic)**提供商。開始前，請在[身份驗證指南](https://runapi.ai/zh-HK/docs/guides/authentication.md)中建立標準 RunAPI API 金鑰，並從[模型目錄](https://runapi.ai/zh-HK/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-HK/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`，然後手動輸入當前的模型識別碼。
* **請求因長度而被拒絕：** 請縮減工作區歷史記錄，或根據所選模型的當前限制修正 **Model context window** 和 **Max Tokens**。
* **身份驗證失敗：** 請在 **OpenAI (generic)** 中以來自[身份驗證指南](https://runapi.ai/zh-HK/docs/guides/authentication.md)的有效標準金鑰更新 API 金鑰。
* **工作區由另一個模型回覆：** 請重新開啟 **LLM Preference**，確認 **OpenAI (generic)** 已啟用，然後再次儲存預期的 **Selected Model**。

有關共享協議行為，請使用 [LLM API
快速入門](https://runapi.ai/zh-HK/docs/guides/llm-api/quickstart.md)。有關請求及回應欄位，請使用 [Chat Completions API
參考](https://runapi.ai/zh-HK/docs/api/openai/chat-completions.md)。

---

## RunAPI 的更多內容

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

聯絡我們: contact@runapi.ai

## 結構化資料

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