Skip to content

Commit 5a671e8

Browse files
fix: add api rate limiter to ai tasks create
1 parent ae212d0 commit 5a671e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/coderd.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,8 @@ func New(options *Options) *API {
994994
r.Use(apiKeyMiddleware)
995995
r.Route("/aitasks", func(r chi.Router) {
996996
r.Get("/prompts", api.aiTasksPrompts)
997-
r.Post("/", api.aiTasksCreate)
997+
998+
r.With(apiRateLimiter).Post("/", api.aiTasksCreate)
998999
})
9991000
r.Route("/mcp", func(r chi.Router) {
10001001
r.Use(

0 commit comments

Comments
 (0)