notes kobold endpoint as being deprecated

This commit is contained in:
nai-degen 2023-05-29 19:43:43 -05:00
parent 30bdc7cd5e
commit 2c8c81e6dd
2 changed files with 3 additions and 3 deletions

View File

@ -90,9 +90,9 @@ function cacheInfoPageHtml(host: string) {
const info = {
uptime: process.uptime(),
endpoints: {
kobold: host,
openai: host + "/proxy/openai",
anthropic: host + "/proxy/anthropic",
["kobold (deprecated)"]: host + "/proxy/kobold",
},
proompts: keys.reduce((acc, k) => acc + k.promptCount, 0),
...(config.modelRateLimit ? { proomptersNow: getUniqueIps() } : {}),

View File

@ -7,7 +7,7 @@ import childProcess from "child_process";
import { logger } from "./logger";
import { keyPool } from "./key-management";
import { adminRouter } from "./admin/routes";
import { proxyRouter, rewriteTavernRequests } from "./proxy/routes";
import { proxyRouter } from "./proxy/routes";
import { handleInfoPage } from "./info-page";
import { logQueue } from "./prompt-logging";
import { start as startRequestQueue } from "./proxy/queue";
@ -18,7 +18,6 @@ const PORT = config.port;
const app = express();
// middleware
app.use("/", rewriteTavernRequests);
app.use(
pinoHttp({
quietReqLogger: true,
@ -34,6 +33,7 @@ app.use(
"req.headers.cookie",
'res.headers["set-cookie"]',
"req.headers.authorization",
'req.headers["x-api-key"]',
'req.headers["x-forwarded-for"]',
'req.headers["x-real-ip"]',
'req.headers["true-client-ip"]',