Skip to content

Commit

Permalink
继续调试
Browse files Browse the repository at this point in the history
  • Loading branch information
htmambo committed Oct 31, 2024
1 parent f519801 commit c8713a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export const OWNER = "htmambo";
export const REPO = "NextChat";
export const REPO_URL = `https://github.com/${OWNER}/${REPO}`;
Expand Down Expand Up @@ -317,6 +316,7 @@ const anthropicModels = [
"claude-3-opus-20240229",
"claude-3-haiku-20240307",
"claude-3-5-sonnet-20240620",
"claude-3-5-sonnet-20241022",
];

const baiduModels = [
Expand Down
1 change: 1 addition & 0 deletions app/store/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export const useSyncStore = createPersistStore(
) as AppState;
// 3. 仅同步用户数据(替换remoteState中的access-control、app-config为localState中的值)
const remoteState = { ...tmpRemoteState };
console.log('从远程获取到的数据:', remoteState);
if (get().onlysyncuserdata) {
// 如果onlysyncuserdata为true,不同步access-control、app-config。需要生成一个新的用于合并的变量,因为remoteState是只读的
remoteState[StoreKey.Access] = localState[StoreKey.Access];
Expand Down
1 change: 1 addition & 0 deletions app/utils/cloud/customrest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function createCustomRESTClient(store: SyncStore) {
resJson = (await res.json()) as { result: string };

}
console.log('服务器返回的信息:', resJson);
return resJson.result;
},

Expand Down
6 changes: 5 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ if (mode !== "export") {
source: "/sharegpt",
destination: "https://sharegpt.com/api/conversations",
},
{
source: "/api/proxy/alibaba/:path*",
destination: "https://dashscope.aliyuncs.com/api/:path*",
},
];

return {
beforeFiles: ret,
};
Expand Down

0 comments on commit c8713a2

Please sign in to comment.