This is an automated email from the ASF dual-hosted git repository. yilialin pushed a commit to branch docs-improve-ai-prmopt-template in repository https://gitbox.apache.org/repos/asf/apisix.git
commit c709fadce21e91b04ae9fb6db33ee3f483a0d0f1 Author: Yilia <[email protected]> AuthorDate: Tue Jan 13 17:15:54 2026 +0800 update --- docs/en/latest/plugins/ai-prompt-template.md | 2 +- docs/zh/latest/plugins/ai-prompt-template.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/latest/plugins/ai-prompt-template.md b/docs/en/latest/plugins/ai-prompt-template.md index ad53b9713..11d976f50 100644 --- a/docs/en/latest/plugins/ai-prompt-template.md +++ b/docs/en/latest/plugins/ai-prompt-template.md @@ -52,7 +52,7 @@ The `ai-prompt-template` plugin simplifies access to LLM providers, such as Open The following examples will be using OpenAI as the upstream service provider. Before proceeding, create an [OpenAI account](https://openai.com) and an [API key](https://openai.com/blog/openai-api). You can optionally save the key to an environment variable as such: ```shell -export OPENAI_API_KEY=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 # replace with your API key +export OPENAI_API_KEY=<YOUR_OPENAI_API_KEY> ``` If you are working with other LLM providers, please refer to the provider's documentation to obtain an API key. diff --git a/docs/zh/latest/plugins/ai-prompt-template.md b/docs/zh/latest/plugins/ai-prompt-template.md index 009788d3b..61d8e9b9c 100644 --- a/docs/zh/latest/plugins/ai-prompt-template.md +++ b/docs/zh/latest/plugins/ai-prompt-template.md @@ -52,7 +52,7 @@ description: "`ai-prompt-template` 插件支持预先配置提示词模板,这 以下示例将使用 OpenAI 作为上游服务提供商。开始之前,请先创建一个 OpenAI 账户 和一个 API 密钥。你可以选择将密钥保存到环境变量中,如下所示: ```shell -export OPENAI_API_KEY=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 # 替换为你的 API 密钥 +export OPENAI_API_KEY=<YOUR_OPENAI_API_KEY> # 替换为你的 API 密钥 ``` 如果你正在使用其他 LLM 提供商,请参阅该提供商的文档以获取 API 密钥。
