fixes dumb /v1/models bug affecting sillytavern again

This commit is contained in:
nai-degen 2023-05-31 13:53:24 -05:00
parent f621031ec1
commit b7fa65d9f9
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@ openaiRouter.use((req, _res, next) => {
}
next();
});
openaiRouter.get("/v1/models", openaiProxy);
openaiRouter.get(
"/v1/models",
setApiFormat({ in: "openai", out: "openai" }),
openaiProxy // TODO: replace with fake model list instead of proxying
);
openaiRouter.post(
"/v1/chat/completions",
setApiFormat({ in: "openai", out: "openai" }),