apiGetThinkingConfig 获取 thinking 配置
(w http.ResponseWriter, r *http.Request)
| 3442 | } |
| 3443 | |
| 3444 | func (h *Handler) writeMicrosoftSSOCanceled(w http.ResponseWriter) { |
| 3445 | w.WriteHeader(http.StatusConflict) |
| 3446 | json.NewEncoder(w).Encode(map[string]string{"error": "Microsoft SSO login was canceled"}) |
| 3447 | } |
| 3448 | |
| 3449 | func (h *Handler) writeAddAccountError(w http.ResponseWriter, err error, rotatedRefreshToken ...string) { |
| 3450 | if errors.Is(err, config.ErrDuplicateAccountID) || |
| 3451 | errors.Is(err, config.ErrDuplicateRefreshToken) || |
| 3452 | errors.Is(err, config.ErrDuplicateAPIKey) { |
| 3453 | w.WriteHeader(http.StatusConflict) |
| 3454 | } else { |
no test coverage detected