Эх сурвалжийг харах

fix: update google url description (#3719)

* feat: update new logo & cover image

* fix: update google url description
Fred Liang 1 жил өмнө
parent
commit
eade013138
3 өөрчлөгдсөн 4 нэмэгдсэн , 5 устгасан
  1. 2 2
      .env.template
  2. 1 2
      app/constant.ts
  3. 1 1
      app/locales/cn.ts

+ 2 - 2
.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)

+ 1 - 2
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

+ 1 - 1
app/locales/cn.ts

@@ -321,7 +321,7 @@ const cn = {
 
         Endpoint: {
           Title: "接口地址",
-          SubTitle: "样例:",
+          SubTitle: "不包含请求路径,样例:",
         },
 
         ApiVerion: {