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

# Azure OpenAI

> 在 Enconvo 中與你的 Azure OpenAI 部署聊天。

使用你的組織部署在 Azure 上的 OpenAI 模型。Enconvo 會直接與你的 Azure 資源通訊，因此存取權限、配額和計費都依你的 Azure 訂閱而定。

## 開始之前

你需要一個至少有一個模型部署的 Azure OpenAI 資源。請從 Azure 入口網站複製該資源的**金鑰**、**端點**，以及你為模型取的**部署名稱**。如果還沒設定過，請參閱 [Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/overview)。

## 連接

**1. 新增憑證**

開啟**設定 → AI 模型 → Azure OpenAI**。在**身分驗證**下，填入 **API 金鑰**、**Endpoint** 和 **API Version**，然後按一下**驗證**。端點的格式類似 `https://<resource>.cognitiveservices.azure.com/`。

**2. 設定部署**

在 **Azure OpenAI Api Deployment Name** 中輸入你的部署名稱。請使用 Azure 資源中的名稱，它可能與模型本身的名稱不同。

**3. 測試**

傳送一則簡短訊息。收到回覆就代表連線成功。

## 模型與選項

| 設定 | 作用 |
| - | - |
| **Azure OpenAI Api Deployment Name** | 此供應商所呼叫的部署。 |
| **Streaming** | 邊寫邊顯示回覆。預設為開啟；如果你的部署不支援串流，請將它關閉。 |
| **API Version** | 位於憑證中。預設為 `2025-01-01-preview`。 |

## 疑難排解

| 問題 | 處理方式 |
| - | - |
| **驗證**失敗 | 確認金鑰與 **Endpoint** 來自同一個 Azure 資源。 |
| 找不到部署 | 從 Azure 入口網站原封不動地複製部署名稱。 |
| 回覆一直沒有出現 | 關閉 **Streaming** 後再試一次。 |
| 出現速率或配額錯誤 | 在 Azure 中提高該部署的配額，或暫時改用其他供應商。 |

## 相關內容

> [card] [OpenAI](https://docs.enconvo.ai/zh-hant/providers/openai.md)
>
> 改用 OpenAI 自己的 API。

> [card] [憑證與設定檔](https://docs.enconvo.ai/zh-hant/configuration/credentials.md)
>
> 保存多把金鑰，並了解共用金鑰會影響哪些功能。

> [card] [選擇模型](https://docs.enconvo.ai/zh-hant/ai/model-selection-guide.md)
>
> 依任務挑選模型，並查看預設值的設定位置。

> [card] [供應商目錄](https://docs.enconvo.ai/zh-hant/providers/catalog.md)
>
> 所有供應商，依其提供的功能分組。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.