fixes dumb /v1/models bug affecting sillytavern again
This commit is contained in:
+5
-1
@@ -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" }),
|
||||
|
||||
Reference in New Issue
Block a user