diff --git a/src/proxy/openai.ts b/src/proxy/openai.ts index 041e05a..0db9b9c 100644 --- a/src/proxy/openai.ts +++ b/src/proxy/openai.ts @@ -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" }),