remove rate limit for custom deployments
This commit is contained in:
parent
56f627d769
commit
1018908c6d
@ -128,12 +128,12 @@ export async function POST(req: Request) {
|
|||||||
const { messages, model, group } = await req.json();
|
const { messages, model, group } = await req.json();
|
||||||
const { tools: activeTools, systemPrompt } = await getGroupConfig(group);
|
const { tools: activeTools, systemPrompt } = await getGroupConfig(group);
|
||||||
|
|
||||||
const identifier = ipAddress(req) || "api";
|
// const identifier = ipAddress(req) || "api";
|
||||||
const { success } = await ratelimit.limit(identifier);
|
// const { success } = await ratelimit.limit(identifier);
|
||||||
|
|
||||||
if (!success) {
|
// if (!success) {
|
||||||
return new Response("Rate limit exceeded for 100 searches a day.", { status: 429 });
|
// return new Response("Rate limit exceeded for 100 searches a day.", { status: 429 });
|
||||||
}
|
// }
|
||||||
|
|
||||||
const result = streamText({
|
const result = streamText({
|
||||||
model: xai(model),
|
model: xai(model),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user