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

# Zotero

> 了解如何在 Zotero GPT 插件中配置 OpenAI-compatible endpoint，接入 siflow endpoint，让 Zotero 文献管理器使用算秩模型进行文献问答。

[Zotero](https://www.zotero.org) 是一个开源文献管理器。Zotero 本身没有内置 AI，AI 功能来自社区 plugin [Zotero GPT (Awesome GPT)](https://github.com/MuiseDestiny/zotero-gpt)。该 plugin 会添加应用内 assistant，并通过 OpenAI-compatible endpoint 连接到 siflow endpoint。请保持 plugin 更新，以兼容您的 Zotero 版本。

以下步骤使用 Zotero 7+/9 上的 Zotero GPT 3.1.x；较新的版本可能略有差异。可用模型（例如 `glm-5.2`、`DeepSeek-V4-Flash`）和价格请参考 [模型广场](https://console.siflow.cn/model-inference/models)。

## 配置

请先在 [API 密钥](https://console.siflow.cn/model-inference/api_keys) 页面创建 API Key。

### 1. 安装 Zotero GPT plugin

从 [releases page](https://github.com/MuiseDestiny/zotero-gpt/releases) 下载最新的 `zotero-gpt.xpi`。

在 Zotero 中打开 **Tools → Plugins**，单击齿轮图标，选择 **Install Plugin From File…**，并选择 `.xpi` 文件。如有提示，请启用该 plugin。工具栏中会出现 **GPT** 图标。

### 2. 配置模型

单击 **GPT** 工具栏图标打开 GPT box。然后逐条输入以下命令，每条命令后按 Enter：

```text theme={null}
/api https://api.siflow.cn/model-api
/secretKey <Your API Key>
/model glm-5.2
```

| 命令           | 值                                                                                                 |
| ------------ | ------------------------------------------------------------------------------------------------- |
| `/api`       | 不带 `/v1` 的 siflow endpoint：`https://api.siflow.cn/model-api`。Plugin 会自行追加 `/v1/chat/completions`。 |
| `/secretKey` | 您在 [API 密钥](https://console.siflow.cn/model-inference/api_keys) 页面创建的 API Key。                    |
| `/model`     | `glm-5.2`                                                                                         |

<Warning>
  `/api` 不能包含 `/v1`。Zotero GPT 会自行追加 `/v1/chat/completions`，如果手动添加 `/v1` 会导致路径重复。
</Warning>

如果使用 plugin 的 agent 或 PDF-RAG 功能，请选择原生支持 tool calling 的模型。

当前模型会显示在 GPT box 的 **Ask** selector 旁边，例如 `glm-5.2`。

<img src="https://mintcdn.com/siflow/MnqDOrFLyFtwF7sA/model-inference/media/zotero-chat-reply.png?fit=max&auto=format&n=MnqDOrFLyFtwF7sA&q=85&s=7ef82baa56d1c67f6ebe1a9c1ce4ebe5" alt="Zotero GPT 使用算秩 glm-5.2 模型进行文献问答" width="1000" height="600" data-path="model-inference/media/zotero-chat-reply.png" />

## 验证

在 GPT box 中输入问题并按 Enter。回复会从算秩模型流式返回。

<Info>
  Assistant 可能会自称为 "Awesome GPT" 或通用模型，而不是具体模型 ID。这是 plugin 自身的 system prompt，不是路由问题；**Ask** 旁边显示的模型才是正在使用的算秩模型。
</Info>
