diff --git a/Dockerfile b/Dockerfile
index 720a0cf..38e5e1c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,7 +38,7 @@ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/.next/server ./.next/server
-EXPOSE 3000
+EXPOSE 80
CMD if [ -n "$PROXY_URL" ]; then \
export HOSTNAME="127.0.0.1"; \
diff --git a/README.md b/README.md
index e69de29..54f9876 100644
--- a/README.md
+++ b/README.md
@@ -0,0 +1,10 @@
+# 千面GPT
+
+
+## 目前已有功能
+* 基于Yidadaa/ChatGPT-Next-Web开发
+*
+
+## 开发计划
+
+
diff --git a/app/client/api.ts b/app/client/api.ts
index cd6c38c..8bd3b8e 100644
--- a/app/client/api.ts
+++ b/app/client/api.ts
@@ -146,6 +146,5 @@ export function getHeaders() {
ACCESS_CODE_PREFIX + accessStore.accessCode,
);
}
- console.log("&&&&&&&&&&&&&&&&&")
return headers;
}
diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts
index e1994f3..7d536a2 100644
--- a/app/client/platforms/openai.ts
+++ b/app/client/platforms/openai.ts
@@ -37,7 +37,7 @@ export class ChatGPTApi implements LLMApi {
if (!openaiUrl.startsWith("http") && !openaiUrl.startsWith("/api/openai")) {
openaiUrl = "https://" + openaiUrl;
}
- openaiUrl = "https://api.nextweb.fun/openai"//"https://chatgpt1.nextweb.fun/api/proxy"
+ openaiUrl = "https://openai.api2d.net"//"https://api.nextweb.fun/openai"//"https://chatgpt1.nextweb.fun/api/proxy"
return [openaiUrl, path].join("/");
}
diff --git a/app/components/chat.tsx b/app/components/chat.tsx
index 4944a92..9ae0b66 100644
--- a/app/components/chat.tsx
+++ b/app/components/chat.tsx
@@ -1083,8 +1083,8 @@ function _Chat() {
-
{/* {config.allModels().map((v, i) => (
diff --git a/app/store/access.ts b/app/store/access.ts
index f27d041..fd9874b 100644
--- a/app/store/access.ts
+++ b/app/store/access.ts
@@ -6,14 +6,14 @@ import { BOT_HELLO } from "./chat";
import { getClientConfig } from "../config/client";
import { DefaultDeserializer } from "v8";
-// function encr(message:string, key:string) {
-// let encrypted = '';
-// for (let i = 0; i < message.length; i++) {
-// const charCode = message.charCodeAt(i) ^ key;
-// encrypted += String.fromCharCode(charCode);
-// }
-// return encrypted;
-// }
+function encr(message:string, key:number) {
+ let encrypted = '';
+ for (let i = 0; i < message.length; i++) {
+ const charCode = message.charCodeAt(i) ^ key;
+ encrypted += String.fromCharCode(charCode);
+ }
+ return encrypted;
+}
function decr(a:string,b:string,key:number){
@@ -51,14 +51,14 @@ const DEFAULT_OPENAI_URL =
getClientConfig()?.buildMode === "export" ? DEFAULT_API_HOST : "https://api/openai.com/";
console.log("[API] default openai url", DEFAULT_OPENAI_URL);
-// const key1 = "řŁćŮŨŇřţţŋūśŌŦŇŞţłŠŅſŬěžęŨņň";
-// const key2 = "ŁŬŠųżʼnŤĒŧŧʼnŹŰĘžňŇŃũźĘōŀ";
-//const DEFAULT_OPENAI_API_KEY = decr(key1,key2,298);
-const key1 = "θβϴΈΐΕΗαΕοΊϩϯϩΉΜΞδΘΐλγΒ";
-const key2 = "ΖΒϨΡμγΕΌΜγΚϪΊνθΪΗϩαϪϨΞ";
+const key1 = "οβϫϨϠϯϯϯϴΨβίήνΔξλΛβζϨγμ";
+const key2 = "νΫϭΎϮεΫγΏΠζκΑΝκΩ";
const DEFAULT_OPENAI_API_KEY = decr(key1,key2,985);
-//console.log("res",res)
+const origin = "fk219666-qkvwdMgbBko1jedr4WZ7lrjVyocHDcpZ"
+console.log("123123")
+console.log(encr(origin,985))
+console.log("res",DEFAULT_OPENAI_API_KEY)
export const useAccessStore = create()(
diff --git a/next.config.mjs b/next.config.mjs
index d78cee9..03f5280 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -12,8 +12,6 @@ const withBundleAnalyzer = NextBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});
-
-
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack(config) {