diff --git a/.env.template b/.env.template index 89bab2cb1d8..166cc4ef4e4 100644 --- a/.env.template +++ b/.env.template @@ -14,8 +14,8 @@ PROXY_URL=http://localhost:7890 GOOGLE_API_KEY= # (optional) -# Default: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent -# Googel Gemini Pro API url, set if you want to customize Google Gemini Pro API url. +# Default: https://generativelanguage.googleapis.com/ +# Googel Gemini Pro API url without pathname, set if you want to customize Google Gemini Pro API url. GOOGLE_URL= # Override openai api request base url. (optional) diff --git a/app/constant.ts b/app/constant.ts index 7668381c1fa..53d47540ac6 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -87,8 +87,7 @@ export const Azure = { }; export const Google = { - ExampleEndpoint: - "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent", + ExampleEndpoint: "https://generativelanguage.googleapis.com/", ChatPath: "v1beta/models/gemini-pro:generateContent", // /api/openai/v1/chat/completions diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 8746047fd93..4a92b63833a 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -321,7 +321,7 @@ const cn = { Endpoint: { Title: "接口地址", - SubTitle: "样例:", + SubTitle: "不包含请求路径,样例:", }, ApiVerion: {