# 将 Hugging Face 接入 Open Flow

Source: https://openflow.run/zh-cn/integrations/huggingface/

[全部集成](https://openflow.run/zh-cn/integrations/)

说明正在评估的模型任务或数据集，让 AI 比较信息并查看样本行。

*   [14 个工具](https://openflow.run/zh-cn/integrations/huggingface/#integration-actions)
*   OAuth 2.0
*   AI
*   开发工具

[连接 Hugging Face](https://console.openflow.run/connections/huggingface)

每月 20,000 次免费应用调用（付费服务另计）

## 可以做什么

此连接读取 Hub 模型、数据集、Spaces、仓库文件和推理端点列表。推理操作可使用可访问模型生成聊天回答或文本向量。

### Hub 研究

查找模型、数据集和 Spaces，查看仓库文件与数据集样本。

### 模型推理

生成非流式聊天回答或向量，并列出指定命名空间的推理端点。

## 所有工具

14 个工具

### Get Current User

获取当前已认证的 Hugging Face 用户资料。

`huggingface.get_current_user`

### List Models

使用用户友好的搜索筛选器列出 Hugging Face 模型。

`huggingface.list_models`

### Get Model Info

按 modelId 获取 Hugging Face 模型的详细元数据。

`huggingface.get_model_info`

### List Datasets

使用用户友好的搜索筛选器列出 Hugging Face 数据集。

`huggingface.list_datasets`

### Get Dataset Info

按数据集 ID 获取 Hugging Face 数据集的详细元数据。

`huggingface.get_dataset_info`

### Get Dataset First Rows

从 Hugging Face Dataset Viewer 预览数据集拆分的首行。

`huggingface.get_dataset_first_rows`

### Get Dataset Statistics

从 Hugging Face Dataset Viewer 获取数据集拆分的列统计信息。

`huggingface.get_dataset_statistics`

### List Spaces

使用用户友好的发现过滤器列出 Hugging Face Spaces。

`huggingface.list_spaces`

### Get Space Info

按仓库 ID 获取 Hugging Face Space 的详细元数据。

`huggingface.get_space_info`

### List Repo Files

列出 Hugging Face 仓库树中的文件。

`huggingface.list_repo_files`

### Get Trending

获取跨模型、数据集和 Spaces 的热门 Hugging Face 仓库。

`huggingface.get_trending`

### List Endpoints

列出命名空间的 Hugging Face 推理端点。

`huggingface.list_endpoints`

### Generate Chat Completion

使用 Hugging Face 推理提供程序生成聊天补全。

`huggingface.generate_chat_completion`

### Generate Embeddings

使用 Hugging Face 推理生成文本嵌入。

`huggingface.generate_embeddings`

没有符合搜索条件的工具。

## 将 Hugging Face 接入 Open Flow

[连接 Hugging Face](https://console.openflow.run/connections/huggingface)

每月 20,000 次免费应用调用（付费服务另计）
