diff --git a/service/ccm/service.go b/service/ccm/service.go index 6f1500fb8..b41eb6da2 100644 --- a/service/ccm/service.go +++ b/service/ccm/service.go @@ -464,6 +464,11 @@ func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request) { "extended context (1m) requests cannot be proxied through external credentials") return } + if isFastModeRequest(anthropicBetaHeader) && selectedCredential.isExternal() { + writeJSONError(w, r, http.StatusBadRequest, "invalid_request_error", + "fast mode requests cannot be proxied through external credentials") + return + } requestContext := selectedCredential.wrapRequestContext(r.Context()) defer func() {