disables kobold endpoint when queueing is enabled
This commit is contained in:
parent
e03f3d48dd
commit
8ff43aef1a
|
@ -34,6 +34,12 @@ const rewriteRequest = (
|
||||||
req: Request,
|
req: Request,
|
||||||
res: Response
|
res: Response
|
||||||
) => {
|
) => {
|
||||||
|
if (config.queueMode !== "none") {
|
||||||
|
const msg = `Queueing is enabled on this proxy instance and is incompatible with the KoboldAI endpoint. Use the OpenAI endpoint instead.`;
|
||||||
|
proxyReq.destroy(new Error(msg));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
req.api = "kobold";
|
req.api = "kobold";
|
||||||
const rewriterPipeline = [
|
const rewriterPipeline = [
|
||||||
addKey,
|
addKey,
|
||||||
|
|
Loading…
Reference in New Issue