From cafa6d9f6032ef290314d35a4a24cbbd6d17e573 Mon Sep 17 00:00:00 2001 From: Memo Chou Date: Wed, 10 Jul 2024 02:07:08 +0800 Subject: [PATCH] Update README.md --- docs/en/environments.md | 16 +++++++++------- docs/environments.md | 16 +++++++++------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/docs/en/environments.md b/docs/en/environments.md index d930877..2ff8766 100644 --- a/docs/en/environments.md +++ b/docs/en/environments.md @@ -32,13 +32,15 @@ Name | Default Value | Description `OPENAI_TIMEOUT` | `` | Timeout for OpenAI API calls. `OPENAI_API_KEY` | `null` | OpenAI API key `OPENAI_BASE_URL` | `https://api.openai.com` | OpenAI API Endpoint. -`OPENAI_COMPLETION_MODEL` | `gpt-3.5-turbo` | Refer to [model](https://beta.openai.com/docs/api-reference/completions/create#completions/create-model) parameter for details. -`OPENAI_COMPLETION_TEMPERATURE` | `0.9` | Refer to [temperature](https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature) parameter for details. -`OPENAI_COMPLETION_MAX_TOKENS` | `160` | Refer to [max_tokens](https://beta.openai.com/docs/api-reference/completions/create#completions/create-max_tokens) parameter for details. -`OPENAI_COMPLETION_FREQUENCY_PENALTY` | `0` | Refer to [frequency_penalty](https://beta.openai.com/docs/api-reference/completions/create#completions/create-frequency_penalty) parameter for details. -`OPENAI_COMPLETION_PRESENCE_PENALTY` | `0.6` | Refer to [presence_penalty](https://beta.openai.com/docs/api-reference/completions/create#completions/create-presence_penalty) parameter for details. -`OPENAI_COMPLETION_STOP_SEQUENCES` | `assistant:,user:` | Refer to [stop](https://platform.openai.com/docs/api-reference/completions/create#completions/create-stop) parameter for details. -`OPENAI_IMAGE_GENERATION_SIZE` | `256x256` | Refer to [size](https://beta.openai.com/docs/api-reference/images/create#images/create-size) parameter for details. +`OPENAI_COMPLETION_MODEL` | `gpt-3.5-turbo` | Refer to [model](https://platform.openai.com/docs/api-reference/chat/create#chat-create-model) parameter for details. +`OPENAI_COMPLETION_TEMPERATURE` | `0.9` | Refer to [temperature](https://platform.openai.com/docs/api-reference/chat/create#chat-create-temperature) parameter for details. +`OPENAI_COMPLETION_MAX_TOKENS` | `160` | Refer to [max_tokens](https://platform.openai.com/docs/api-reference/chat/create#chat-create-max_tokens) parameter for details. +`OPENAI_COMPLETION_FREQUENCY_PENALTY` | `0` | Refer to [frequency_penalty](https://platform.openai.com/docs/api-reference/chat/create#chat-create-frequency_penalty) parameter for details. +`OPENAI_COMPLETION_PRESENCE_PENALTY` | `0.6` | Refer to [presence_penalty](https://platform.openai.com/docs/api-reference/chat/create#chat-create-presence_penalty) parameter for details. +`OPENAI_COMPLETION_STOP_SEQUENCES` | `assistant:,user:` | Refer to [stop](https://platform.openai.com/docs/api-reference/chat/create#chat-create-stop) parameter for details. +`OPENAI_IMAGE_GENERATION_MODEL` | `dall-e-2` | Refer to [model](https://platform.openai.com/docs/api-reference/images/create#images-create-model) parameter for details. +`OPENAI_IMAGE_GENERATION_SIZE` | `256x256` | Refer to [size](https://platform.openai.com/docs/api-reference/images/create#images-create-size) parameter for details. +`OPENAI_IMAGE_GENERATION_QUALITY` | `standard` | Refer to [quality](https://platform.openai.com/docs/api-reference/images/create#images-create-quality) parameter for details. `LINE_TIMEOUT` | `` | Timeout for LINE Messaging API calls. `LINE_CHANNEL_ACCESS_TOKEN` | `null` | LINE channel access token `LINE_CHANNEL_SECRET` | `null` | LINE channel secret diff --git a/docs/environments.md b/docs/environments.md index c9172b3..757ba9d 100644 --- a/docs/environments.md +++ b/docs/environments.md @@ -36,13 +36,15 @@ import { withBase } from '@vuepress/client' `OPENAI_TIMEOUT` | `` | 呼叫 OpenAI API 的超時時間。 `OPENAI_API_KEY` | `null` | OpenAI 的 API key,用來實現與 AI 對話。 `OPENAI_BASE_URL` | `https://api.openai.com` | OpenAI 的 API 端點。 -`OPENAI_COMPLETION_MODEL` | `gpt-3.5-turbo` | 詳見 [model](https://beta.openai.com/docs/api-reference/completions/create#completions/create-model) 參數說明。 -`OPENAI_COMPLETION_TEMPERATURE` | `0.9` | 詳見 [temperature](https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature) 參數說明。 -`OPENAI_COMPLETION_MAX_TOKENS` | `160` | 詳見 [max_tokens](https://beta.openai.com/docs/api-reference/completions/create#completions/create-max_tokens) 參數說明。 -`OPENAI_COMPLETION_FREQUENCY_PENALTY` | `0` | 詳見 [frequency_penalty](https://beta.openai.com/docs/api-reference/completions/create#completions/create-frequency_penalty) 參數說明。 -`OPENAI_COMPLETION_PRESENCE_PENALTY` | `0.6` | 詳見 [presence_penalty](https://beta.openai.com/docs/api-reference/completions/create#completions/create-presence_penalty) 參數說明。 -`OPENAI_COMPLETION_STOP_SEQUENCES` | `assistant:,user:` | 詳見 [stop](https://platform.openai.com/docs/api-reference/completions/create#completions/create-stop) 參數說明。 -`OPENAI_IMAGE_GENERATION_SIZE` | `256x256` | 詳見 [size](https://beta.openai.com/docs/api-reference/images/create#images/create-size) 參數說明。 +`OPENAI_COMPLETION_MODEL` | `gpt-3.5-turbo` | 詳見 [model](https://platform.openai.com/docs/api-reference/chat/create#chat-create-model) 參數說明。 +`OPENAI_COMPLETION_TEMPERATURE` | `0.9` | 詳見 [temperature](https://platform.openai.com/docs/api-reference/chat/create#chat-create-temperature) 參數說明。 +`OPENAI_COMPLETION_MAX_TOKENS` | `160` | 詳見 [max_tokens](https://platform.openai.com/docs/api-reference/chat/create#chat-create-max_tokens) 參數說明。 +`OPENAI_COMPLETION_FREQUENCY_PENALTY` | `0` | 詳見 [frequency_penalty](https://platform.openai.com/docs/api-reference/chat/create#chat-create-frequency_penalty) 參數說明。 +`OPENAI_COMPLETION_PRESENCE_PENALTY` | `0.6` | 詳見 [presence_penalty](https://platform.openai.com/docs/api-reference/chat/create#chat-create-presence_penalty) 參數說明。 +`OPENAI_COMPLETION_STOP_SEQUENCES` | `assistant:,user:` | 詳見 [stop](https://platform.openai.com/docs/api-reference/chat/create#chat-create-stop) 參數說明。 +`OPENAI_IMAGE_GENERATION_MODEL` | `dall-e-2` | 詳見 [model](https://platform.openai.com/docs/api-reference/images/create#images-create-model) 參數說明。 +`OPENAI_IMAGE_GENERATION_SIZE` | `256x256` | 詳見 [size](https://platform.openai.com/docs/api-reference/images/create#images-create-size) 參數說明。 +`OPENAI_IMAGE_GENERATION_QUALITY` | `standard` | 詳見 [quality](https://platform.openai.com/docs/api-reference/images/create#images-create-quality) 參數說明。 `LINE_TIMEOUT` | `` | 呼叫 LINE Messaging API 的超時時間。 `LINE_CHANNEL_ACCESS_TOKEN` | `null` | LINE 的 channel access token,用來傳送訊息。 `LINE_CHANNEL_SECRET` | `null` | LINE 的 channel secret,用來驗證訊息來源。