mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
'修复命名错误'
This commit is contained in:
parent
8debb785fb
commit
cea656ec9a
@ -166,7 +166,7 @@ export async function requestLog(
|
|||||||
path: url_path,
|
path: url_path,
|
||||||
logEntry: JSON.stringify(jsonBody),
|
logEntry: JSON.stringify(jsonBody),
|
||||||
model: url_path.startsWith("mj/") ? "midjourney" : jsonBody?.model, // 后面尝试请求是添加到参数
|
model: url_path.startsWith("mj/") ? "midjourney" : jsonBody?.model, // 后面尝试请求是添加到参数
|
||||||
name: h_userName,
|
userName: h_userName,
|
||||||
};
|
};
|
||||||
|
|
||||||
await fetch(`${baseUrl}/api/logs/openai`, {
|
await fetch(`${baseUrl}/api/logs/openai`, {
|
||||||
|
@ -10,7 +10,10 @@ async function handle(
|
|||||||
try {
|
try {
|
||||||
const request_data = await req.json();
|
const request_data = await req.json();
|
||||||
if (request_data?.userName) {
|
if (request_data?.userName) {
|
||||||
await insertUser({ name: request_data?.name, email: request_data?.name });
|
await insertUser({
|
||||||
|
name: request_data?.userName,
|
||||||
|
email: request_data?.userName,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// console.log("===========4", request_data);
|
// console.log("===========4", request_data);
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user