This commit is contained in:
sijinhui 2024-01-02 22:52:58 +08:00
parent 8a5915d122
commit 6bcb0a5c97
3 changed files with 6 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import { prettyObject } from "@/app/utils/format";
import { getClientConfig } from "@/app/config/client"; import { getClientConfig } from "@/app/config/client";
import Locale from "../../locales"; import Locale from "../../locales";
import { getServerSideConfig } from "@/app/config/server"; import { getServerSideConfig } from "@/app/config/server";
import de from "@/app/locales/de"; // import de from "@/app/locales/de";
export class GeminiProApi implements LLMApi { export class GeminiProApi implements LLMApi {
extractMessage(res: any) { extractMessage(res: any) {
console.log("[Response] gemini-pro response: ", res); console.log("[Response] gemini-pro response: ", res);

View File

@ -76,9 +76,9 @@ export const getServerSideConfig = () => {
const apiKeys = apiKeyEnvVar.split(",").map((v) => v.trim()); const apiKeys = apiKeyEnvVar.split(",").map((v) => v.trim());
const randomIndex = Math.floor(Math.random() * apiKeys.length); const randomIndex = Math.floor(Math.random() * apiKeys.length);
const apiKey = apiKeys[randomIndex]; const apiKey = apiKeys[randomIndex];
console.log( // console.log(
`[Server Config] using ${randomIndex + 1} of ${apiKeys.length} api key`, // `[Server Config] using ${randomIndex + 1} of ${apiKeys.length} api key`,
); // );
return { return {
baseUrl: process.env.BASE_URL, baseUrl: process.env.BASE_URL,

View File

@ -23,8 +23,8 @@
"@svgr/webpack": "^8.1.0", "@svgr/webpack": "^8.1.0",
"@tremor/react": "^3.12.1", "@tremor/react": "^3.12.1",
"@vercel/analytics": "^1.1.1", "@vercel/analytics": "^1.1.1",
"echarts": "^5.4.3",
"@vercel/speed-insights": "^1.0.2", "@vercel/speed-insights": "^1.0.2",
"echarts": "^5.4.3",
"emoji-picker-react": "^4.5.15", "emoji-picker-react": "^4.5.15",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"html-to-image": "^1.11.11", "html-to-image": "^1.11.11",
@ -33,6 +33,7 @@
"next": "^14.0.3", "next": "^14.0.3",
"next-auth": "^4.24.5", "next-auth": "^4.24.5",
"node-fetch": "^3.3.1", "node-fetch": "^3.3.1",
"prop-types": "^15.6.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-markdown": "^9.0.1", "react-markdown": "^9.0.1",