fixes dumb /v1/models bug affecting sillytavern again
This commit is contained in:
parent
f621031ec1
commit
b7fa65d9f9
|
@ -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" }),
|
||||
|
|
Loading…
Reference in New Issue