From b13a63e568b48f537f1a9f8137bf117fedfbaf1f Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Wed, 11 Oct 2023 14:28:00 +0800 Subject: [PATCH] fix: openai default url --- src/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/index.js b/src/config/index.js index 8684b21..0b91e6c 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -281,7 +281,7 @@ export const DEFAULT_TRANS_APIS = { key: "", }, [OPT_TRANS_OPENAI]: { - url: "https://api.openai.com/v1/chat/completion", + url: "https://api.openai.com/v1/chat/completions", key: "", model: "gpt-4", prompt: `You will be provided with a sentence in ${PROMPT_PLACE_FROM}, and your task is to translate it into ${PROMPT_PLACE_TO}.`,