fix: remove advisor reasoning configuration (#25030)

This commit is contained in:
Thomas Kosiewski
2026-05-07 15:19:19 +02:00
committed by GitHub
parent 8c08aa1f6c
commit 273e828442
12 changed files with 47 additions and 563 deletions
-8
View File
@@ -5104,14 +5104,6 @@ func (api *API) putChatAdvisorConfig(rw http.ResponseWriter, r *http.Request) {
})
return
}
switch req.ReasoningEffort {
case "", "low", "medium", "high":
default:
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
Message: fmt.Sprintf(`reasoning_effort %q is not valid; must be one of "", "low", "medium", or "high".`, req.ReasoningEffort),
})
return
}
if req.ModelConfigID != uuid.Nil {
// Use system context because GetChatModelConfigByID requires
// deployment-config read access, which can be broader than the