nginx-ui/docs/zh_TW/guide/config-openai.md
2025-04-16 16:05:12 +08:00

55 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Open AI
本節用於設定 ChatGPT 設定。請注意,我們不會檢查您提供的資訊的準確性。如果設定錯誤,可能會導致 API 請求失敗,導致 ChatGPT
助手無法使用。
## BaseUrl
- 型別:`string`
此選項用於設定 Open AI API 的基本 URL如果不需要更改 URL則將其保留為空。
## Token
- 型別:`string`
此選項用於設定 Open AI API 的令牌。
## Proxy
- 型別:`string`
此選項用於為 OpenAI 的 API 設定代理。如果您在國家或地區無法存取 OpenAI 的 API可以使用 HTTP 代理並將此選項設定為相應的
URL。
## Model
- 型別:`string`
- 預設值:`gpt-3.5-turbo`
此選項用於設定對話模型。如果您的帳戶有許可權訪問 `gpt-4` 模型,可以相應地配置此選項。
## APIType
- 型別:`string`
- 預設值:`OPEN_AI`
此選項用於設定 API 的類型。
- `OPEN_AI`: 使用 OpenAI API。
- `AZURE`: 使用 Azure API。
## EnableCodeCompletion
- 型別:`boolean`
- 預設值:`false`
- 版本:`>=2.0.0-rc.6`
此選項用於啟用編輯器代碼補全功能。
## CodeCompletionModel
- 型別:`string`
- 版本:`>=2.0.0-rc.6`
此選項用於設定代碼補全的模型,留空則使用對話模型。